On Tue, 28 Nov 2006 12:49:31 +0100
[EMAIL PROTECTED] wrote:

> 
> 
> ----- Origineel bericht -----
> Van: [EMAIL PROTECTED] (Marco van de Voort)
> Datum: dinsdag, 28 november 2006 12:34
> Onderwerp: Re: GetFPImageReaderForFileExtension question for .jpg
> 
> > > Mattias Gaertner wrote:
> > > >> 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.
> > 
> > Sidenode 2: storage of pictures in .lfms is not endianess safe and 
> > platformindependant.
> 
> Really?
> 
> I thought streaming was always done little endian. On big endian
> systems, data is converted when necessary.

Images are streamed as data (byte stream). They are not converted.
All other values are as you told (auto converted).

The endianess is up to the image readers/writers.
AFAIK .bmp, .xpm, .png, .jpg work under powerPC.


Mattias

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

Reply via email to