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
 How to draw one layer-image or combinded layer-img
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

harry stahl

Germany
62 Posts

Posted - Jul 17 2016 :  17:32:37  Show Profile  Reply
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

xequte

38615 Posts

Posted - Jul 18 2016 :  00:31:59  Show Profile  Reply
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:

http://www.imageen.com/help/TIEBitmap.RenderToCanvas.html

Or just normal TCanvas methods via ImageEnView1.Layers[x].Bitmap.Canvas.


2. Use LayersSaveMergedTo to output a merged view to a TIEBitmap:

http://www.imageen.com/help/TImageEnView.LayersSaveMergedTo.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: