T O P I C R E V I E W |
Matthew T |
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 |
3 L A T E S T R E P L I E S (Newest First) |
fab |
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. |
Matthew T |
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 |
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. |
|
|