Marco van de Voort
marcov at stack.nl
Fri Apr 23 09:31:29 CEST 2004
> On Thu, 22 Apr 2004, Alan Mead wrote:
> > Michael Van Canneyt <michael.vancanneyt at wisa.be> wrote:
> > > Yes. You need at least 1.9.2.
> > > The best would even be to download the latest CVS, as it supports
> > > more formats.
> > > Or you can try to download the FCL sources and recompile them with
> > > FPC 1.0.10.
> > I appreciate your help with this. I installed 1.9.2 on my other
> > machine and I see most of the units (the writejpg is not found)...
> > you indicated that your code was only a rough sketch but I cannot get
> > it to compile:
I just patched the sketch:
uses fpimage,fpcanvas,fpwritepng, fpwritejpeg,fpimgcanv;
Image : TFPMemoryImage;
Canvas : TFPimageCanvas;
// Create image,
// Create canvas.
// Free canvas
Image.SaveToFile('myfile.png',TFPWriterPNG.Create); // Write as png
Image.SaveToFile('myfile.jpg',TFPWriterPNG.Create); // Alternatively, write as jpg
// Free Image.
More information about the fpc-pascal