ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 layers
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Matthew T

USA
21 Posts

Posted - Apr 14 2012 :  10:48:54  Show Profile  Reply
Hi I am just getting started and I was using the demo under FullApps, ImageEnPainter\umain.pas as a starting point.

The procedure Proc CreateBrush was the guide for my procedure. When I get to the ImageResize, a small box the size of the control appears in the top left quarter and when I try to save the image, that small box is what is saved.


if IEImage.LayersCount=1 then
IEImage.LayersAdd;
IEImage.LayersCurrent:=-1;

brushsiz:= cxSESpotSize.Value;
IEImage.Proc.ImageResize(brushsiz,brushsiz,iehLeft,ievTop);

Obviously I am not merging the control into the image somehow even when before saving:

IEImage.CopyObjectsToBack(true);
IEImage.RemoveAllObjects;

Thank you for help.



Matthew

fab

1310 Posts

Posted - Apr 14 2012 :  23:47:34  Show Profile  Reply
Hi,
you should merge layers before ImageResize, otherwise the new layer (layer 1) will be not resized:

IEImage.LayersMergeAll();
IEImage.Proc.ImageResize(...

Otherwise resize each layer separately.
Go to Top of Page

Matthew T

USA
21 Posts

Posted - Apr 15 2012 :  07:23:36  Show Profile  Reply
Hi Fabrizio,

I am trying to control the Brush Size of the MouseInterctVt (either miPutPolyLine, miPutEllipse or miPutLineLabel).

Using IEImage.LayerMergeAll, my background image disappears. It seems that when I use ImageResize, it is resizing the entire image instead of the annotation.

Attached is a screen shot showing the layer created after

IEImage.Proc.ImageResize(brushsiz,brushsiz,iehLeft,ievTop);

with brushsiz = 100

The top left is a blank square that is resized.



Thank you,
Matthew

Matthew
Go to Top of Page

fab

1310 Posts

Posted - Apr 15 2012 :  13:21:39  Show Profile  Reply
It is right, ImageResize resizes only current layer (the bitmap), and not the vectorial objects. They cannot be resized.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: