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
 rendering 1 bitmap to another with transparency

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
davenovo Posted - Feb 06 2014 : 18:02:39
Hello,

If I have two bitmaps of equal size, and I want to merge them together with transparency, what is the best way to do that.

I guess I can create an imageEnView, stick my existing bitmaps in as layers, merge the layers and copy the data out somehow, but is there a way to do this more directly.

I see there is TIEBitmap.RenderToTIEBitmap but it has a lots of parameters, most of them unexplained. Can someone give me a code snippet how to do this, or the best practices.
2   L A T E S T    R E P L I E S    (Newest First)
davenovo Posted - Feb 13 2014 : 15:13:20
Hi Guys,

Can I please ask that you improve the documentation. If you look at the documentation for RenderToCanvasWithAlpha, there is both a transparency and opacity parameter? huh? Also, if you click on teh link for the renderoperations, there is like 30 of them, with no explanation of what they are. Including an explanation, and sample images, would be immensely beneficial.
xequte Posted - Feb 12 2014 : 21:13:04
Hi

Please try either TIEBitmap.RenderToTIEBitmapEx:

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

Or TIEBitmap.RenderToCanvasWithAlpha:

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


Both support the alpha channel and have simpler parameters.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com