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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to draw one layer-image or combinded layer-img

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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:

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