Re: [fpc-pascal] Does FCL Image support transparency?

2016-09-19 Thread Reimar Grabowski
On Mon, 19 Sep 2016 20:00:54 +0200 (CEST) Michael Van Canneyt wrote: > Maybe you can share your code, so we can improve the base class ? It's just a trivial change to the Draw function and IMO there is little gain implementing it like this for TFPCustomCanvas, but here

Re: [fpc-pascal] Does FCL Image support transparency?

2016-09-19 Thread Michael Van Canneyt
On Mon, 19 Sep 2016, Reimar Grabowski wrote: On Fri, 16 Sep 2016 20:31:30 +0200 (CEST) Michael Van Canneyt wrote: I would say it is a bug. Then StretchDraw is bugged, too. Or it's no bug at all and TCustomCanvas is just missing alpha blending functionality. I

Re: [fpc-pascal] Does FCL Image support transparency?

2016-09-19 Thread Reimar Grabowski
On Fri, 16 Sep 2016 20:31:30 +0200 (CEST) Michael Van Canneyt wrote: > I would say it is a bug. Then StretchDraw is bugged, too. Or it's no bug at all and TCustomCanvas is just missing alpha blending functionality. I ended up deriving my own canvas class and

Re: [fpc-pascal] Does FCL Image support transparency?

2016-09-16 Thread Michael Van Canneyt
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

Re: [fpc-pascal] Does FCL Image support transparency?

2016-09-16 Thread Mattias Gaertner
On Fri, 16 Sep 2016 17:48:33 +0200 (CEST) Michael Van Canneyt wrote: > On Fri, 16 Sep 2016, Reimar Grabowski wrote: > > > Hi, > > > > I want to put watermarks on images in a command line application. > > This doesn't do the trick: > > > >

Re: [fpc-pascal] Does FCL Image support transparency?

2016-09-16 Thread Reimar Grabowski
On Fri, 16 Sep 2016 17:48:33 +0200 (CEST) Michael Van Canneyt wrote: > > Can FCL Image do this and if not what are my alternatives? > > It should be able to do this, yes. Ok, but what am I missing since it's not working here. R.

Re: [fpc-pascal] Does FCL Image support transparency?

2016-09-16 Thread Michael Van Canneyt
On Fri, 16 Sep 2016, Reimar Grabowski wrote: 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

[fpc-pascal] Does FCL Image support transparency?

2016-09-16 Thread Reimar Grabowski
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