Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
harry stahl
Posted - Jul 17 2016 : 17:32:37 1. I want to show all the layer-images in a stringgrid as small images. I don't want to use an ImageEnMView like in the layers demo, because I want to draw the layer mask beside the normal layer image (like in photoshop).
I did not found a layers[x].Stretchdraw or something similar. And also in the TIEBitmap I found only functions ("stretchrectto") that assumes a TIEBitmap.
So I always have to create temporarily a normal TBitmap, copy the TIEBitmap to the TBitmap and then I can use Windows Stretchdraw-functions.
Is there no direct way with ImageEn to Stretchdraw an Layer-Image directly to a Windows-Canvas?
2. I want draw the combinded layer-Image to a canvas. How can I do that?
HS
1 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Jul 18 2016 : 00:31:59 Hi Harry
1. Access the TIEBitmap of a layer via ImageEnView1.Layers[x].Bitmap.
Then you can use methods of the TIEBitmap such as RenderToCanvas: