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