2006/6/29, Michael Van Canneyt <[EMAIL PROTECTED]>:
Look at the imgconv program in fcl/image.
If it's not clear after that, I'll try to provide a more detailed
description.
Ok, I got the point. I saw that there was some functions to detect the
file extention type and get the required reader for a given file type;
but I can't find any function that does it all. I could write the code
myself (since I do need it) but is it already done in an utility unit?
I see such functions in TGraphic... unless I totally do not understand
how to use all the thing.
reader : TFPCustomImageReader;
reader := GetReaderForFileExtention(GetFileExtension(filename)).Create;
As I understand, I'll need to pick a reader, then covert with
TFPImageBitmap in order to finally have a bitmap. But all this is not
required if I can simply draw from a TFPMemoryImage to any other canva
like Canvas.Draw(0, 0, Picture.Graphic);
--
Alexandre Leclerc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives