Mattias Gaertner ?????:
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
*Thank you, Mattias for replay.*
Can you help me to understand the problem with PNG and all other picture
formats except of XPM. So problem prescription:
- Gentoo Linux 2006.1 x86;
- Lazarus and FPC packages are installed from Gentoo sources (portages),
They are Lazarus 0.9.20 and FPC 2.0.4;
- gtk-pixpuff-0.22.0 is installed from the sources (because gtk-pixpuff
is being removed from Gentoo portages since November 2006 or so);
I add simple TImage component to a form and try to set the image for it.
The ONLY possible way is to set an XPM image. All other images give me
such message:
*Streaming error!*
*Unable to stream Form1:TForm1.
Invalid horizontal pixel index -1
*As a result I can only use XPM images for my projects. May be I do
something in a wrong way?
*Regards, Alexey.*