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
 rendering 1 bitmap to another with transparency
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

davenovo

USA
26 Posts

Posted - Feb 06 2014 :  18:02:39  Show Profile  Reply
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.

xequte

38616 Posts

Posted - Feb 12 2014 :  21:13:04  Show Profile  Reply
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
Go to Top of Page

davenovo

USA
26 Posts

Posted - Feb 13 2014 :  15:13:20  Show Profile  Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: