2006/6/28, Michael Van Canneyt <[EMAIL PROTECTED]>:


On Wed, 28 Jun 2006, Alexandre Leclerc wrote:

> Hi all,
>
> I'm looking for an image library that could open and display jpg, png,
> bmp. Then with this class be able to convert that in a standard
> TBitmap so that I can draw in canvas, etc.
>
> If the class can be brilliant (auto-detect the file format) that would be
> nice.
> TSuperPicture.LoadFromFile('image.jpg);
> TSuperPicture.TBitmap.Assign(TMyOtherBitmap);

What is wrong with TFPImage ?
It comes standard with FPC and can read many formats.

Hi Michael,

There is nothing wrong with TFPImage, this is the answer I was waiting
for :). Thank you. (I don't know all the components there are in
RTL/LCL/FCL yet.)

I see that there are no actual TFPImage superclass that can detect the
file type; but many T[JPG,PNG,PNM,TGA,BMPXPM,...]Image classes that
all inherit from TFPImageBitmap.

If some want, I might create a TFPImage class that will provide the
canvas, but will internally auto-load the good file by creating the
required class.

Best Regards.

--
Alexandre Leclerc

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

Reply via email to