On Sun, 11 Mar 2007 18:02:21 +0300
Alex Smirnov <[EMAIL PROTECTED]> wrote:

> Vincent Snijders ?????:
> > Alex Smirnov schreef:
> >> *Hello, colleagues.
> >>
> >> *Is it possible to describe me some things? It seems that Lazarus
> >> for Linux store pictures in EXE files in XPM format and Lazarus
> >> for Windows store them in PNG format (or something like that). 
> >
> > As far as I know, there is no difference in the stored picture
> > formats between the different OS-es.
> >
> > Vincent 
> Sorry. It's my mistake. But am I right - in both cases the picture is 
> stored as XPM? Is it possible to store it as PNG? It will save a lot
> of space.

For TBitmap: The image is stored in the exe in the same format as it was
loaded. TBitmap does not support PNG. If the image is altered and then
saved it will be stored as .bmp.
.xpm is good for icons. For icons it could be even smaller than .bmp.
For TImage: The image is stored in the exe as the same format as it was
loaded. If you load a .png it will be stored as PNG.

Short: Create the images/icons in the format you prefer. The format
will only be changed, if you load for example a .png into a TBitmap. In
this case the image will be converted to a .bmp.


Mattias

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

Reply via email to