[lazarus] Wrong colours in win32
Micha Nelissen
micha at neli.hopto.org
Sat Dec 13 13:29:26 EST 2003
Mattias Gaertner wrote:
> On Sat, 13 Dec 2003 18:07:28 +0100 Micha Nelissen <micha at neli.hopto.org>
> wrote:
>
>
>>Vincent Snijders wrote:
>>
>>
>>>On Sat, 13 Dec 2003 17:34:51 +0100
>>>Micha Nelissen <micha at neli.hopto.org> wrote:
>>>
>>>>Is there a way to get the lazarus logo as file, lazarus.xpm or so?
>>>>Then I can make a seperate test app, debugging the ide is quite a lot
>>>>of code ;-).
>>>>
>>>>Micha.
>>>
>>>See lazarus/images/splash_logo.xpm and
>>>lazarus/images/lazarus_about_logo.xpm.
>>
>>Thanks for the hint. It seems this is a paletted image, is that right?
>
>
> Yes. XPM has always a palette.
>
>
>
>>Does this indicate a failure in fpimage to load paletted images?
>
>
> No. see below.
>
>
>
>>I assume it does work in gtk?
>
>
> Yes.
>
>
> To reduce the confusion:
> fpImage splitts and modularizes the reading/writing of images.
> For example the XPM reader parses a stream and converts each pixel into a
> TFPColor, to call SetPixel for each pixel. So, this conversion is XPM ->
> TFPColor (48bit depth). Theoretically XPM supports more than 48 bit depth,
> but practically not, therefore this conversion is lossless.
> The TLazIntfImage overrides the SetPixel method and sets the pixel according
> to the RawImage format. This can result in loss of color information.
>
> So, yes, the splash logo is paletted, and no, fpImage has no problem with
> it.
> When you save an XPM, the palette is created on the fly.
Ok. My hunt continues... ;-)
Micha.
More information about the Lazarus
mailing list