Author |
Topic  |
|
Matthew T

USA
21 Posts |
Posted - Apr 14 2012 : 10:48:54
|
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
|
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. |
 |
|
Matthew T

USA
21 Posts |
Posted - Apr 15 2012 : 07:23:36
|
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 |
 |
|
fab
   
1310 Posts |
Posted - Apr 15 2012 : 13:21:39
|
It is right, ImageResize resizes only current layer (the bitmap), and not the vectorial objects. They cannot be resized. |
 |
|
|
Topic  |
|
|
|