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 you go:
-add variables: N
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 ended up deriving my own can
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 implementing the desired
functional
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
Canva
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:
> >
> > ScaledImage:=TFPCompactImgRGBA8Bit.Create(Width, Height);
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.
___
fpc-pascal mai
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
Canvas.StretchDraw(0,0,Width,H