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 assign Alpha-IEBitmap to TBitmap

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 - Jun 14 2017 : 11:51:05
When I open a layer-file, e.g. a PSD File, then The IEBitmap becomes to 24-Bit and has an Alpha-Bitmap with 8 Bit.

I want then assign this to a 32-Bit TBitmap.

Is there a ready to use function in ImageEn?

At the Moment I do it so:


  ievpic.IEBitmap.DrawToCanvas (wBitmap.canvas, 0,0);
  if (wBitmap.PixelFormat = pf32bit) and (ievpic.HasAlphaChannel) then
    SetBitMapToRGBAValues (ievpic.CurrentLayer.Bitmap.AlphaChannel.vclbitmap, 
    wBitmap);
  end;


The function "SetBitmaptoRGBAValues" use the AlphaChannel.vclbitmap to set the Alpha-Values in wBitmap.

HS
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 14 2017 : 20:01:43

Hi Harry

You can SynchronizeRGBA to handle this.

Please see examples at:

https://www.imageen.com/help/TIEBitmap.SynchronizeRGBA.html

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