Mattias Gaertner wrote:
On Mon, 27 Nov 2006 23:36:03 +0100 (CET)
Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
On Mon, 27 Nov 2006, Alexandre Leclerc wrote:
2006/11/27, Alexandre Leclerc <[EMAIL PROTECTED]>:
Hi all,
I don't know why but the function is returning no reader
for .jpg. Do I need to register a special class or do anything
special?
{$IFDEF UseSimpleJpeg}
Add('jpg', 'Joint Picture Expert Group',TJpegImage);
{$ENDIF}
Do I need any special settings or units or simply defining will
work? And where should I define that?
Using the unit lazjpeg should be enough, no other code should be
required ?
Correct.
Normally when using the package (jpegforlazarus or images4lazarus), the
IDE adds the unit to program source and thus the lazjpeg unit is used.
Now we are at the topic, last weekend I was demonstrating with a jpeg in
a TPicture. When loading the image in the IDE, the *.jpg fiter wasn't
there. However, when filtering for all files, selecting a .jpg worked.
It's preview was shown. The image on the form was also shown. However,
the compiled exe didn't show the image.
This was on a win32 machine, with a default 0.9.20 install.
Sidenote: Joost pointed me that the images are probably streamed by
extention and not by its magic. He ran into "troubles" with this when he
was implementing image blobs.
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives