2006/6/29, Alexandre Leclerc <[EMAIL PROTECTED]>:
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;

For the posterity on this question:
GetFPImageReaderForFileExtension is the actual function declared in
graphics unit (picture.inc). My pseudo-code was near the reality :)

--
Alexandre Leclerc

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to