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 Canva

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: > > > > ScaledImage:=TFPCompactImgRGBA8Bit.Create(Width, Height);

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. ___ fpc-pascal mai

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 Canvas.StretchDraw(0,0,Width,H

[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 Ca

Re: [fpc-pascal] Asci85

2016-09-16 Thread José Mejuto
El 16/09/2016 a las 10:16, Santiago A. escribió: Hello, StrmEnc85:=TAscii85EncoderStream.Create(StrmOut,72,True); try StrmEnc85.CopyFrom(StrmIn,0); Result:=StrmOut.DataString; finally StrmEnc85.Free; Maybe there is something wrong in ASCII85 encoder, but th

Re: [fpc-pascal] Reed-Solomon algorithm

2016-09-16 Thread Ralf Quint
On 9/16/2016 12:11 AM, duilio foschi wrote: Hi Ralf. thank you for the hint re the Jedi RS algorithm. The code is inspirational, but weak: [from file readme.txt] "As far as I can tell it works, but I made some rather rash assumptions which need to be confirmed by someone who knows what they a

Re: [fpc-pascal] Ascii85

2016-09-16 Thread Santiago A.
El 16/09/2016 a las 10:16, Santiago A. escribió: > Hello: > > I'm trying to use ascii85 packages to decode/encode strings. But I get > this weird results: > > -- > Original Plain: 123456 > Correct Encoded: <~0etOA2)Y~> > > Encode 123456 = <~0etOA > Decode <~0etOA = 1234 > > Decode <~0et

[fpc-pascal] Asci85

2016-09-16 Thread Santiago A.
Hello: I'm trying to use ascii85 packages to decode/encode strings. But I get this weird results: -- Original Plain: 123456 Correct Encoded: <~0etOA2)Y~> Encode 123456 = <~0etOA Decode <~0etOA = 1234 Decode <~0etOA2)Y~> = 123456 -- It looks like decoder stops reading so

Re: [fpc-pascal] Reed-Solomon algorithm

2016-09-16 Thread duilio foschi
Hi Ralf. thank you for the hint re the Jedi RS algorithm. The code is inspirational, but weak: [from file readme.txt] "As far as I can tell it works, but I made some rather rash assumptions which need to be confirmed by someone who knows what they are doing" I need code I can trust, so will st