[fpc-pascal] Does FCL Image support transparency?
Reimar Grabowski
reimgrab at web.de
Fri Sep 16 17:42:58 CEST 2016
Hi,
I want to put watermarks on images in a command line application.
This doesn't do the trick:
ScaledImage:=TFPCompactImgRGBA8Bit.Create(Width, Height);
Canvas:=TFPImageCanvas.Create(ScaledImage); // TFPImageCanvas
Canvas.StretchDraw(0,0,Width,Height,Image); // Image is TFPCompactImgRGB8Bit
Canvas.Draw(0,0,Watermark); // Watermark is an TFPCompactImgRGBA8Bit
Watermark is a transparent PNG loaded from disk but the transparency is not respected when drawing it onto ScaledImage.
Can FCL Image do this and if not what are my alternatives?
R.
More information about the fpc-pascal
mailing list