Page 1 of 1

Icons wih Delphi-example - wrong colors

Posted: Wed Feb 09, 2005 9:44 am
by Philips10
I tried the Delphi-example-preoject
and tried to open and view icons with
the compiled project that comes with
the package one can download.

Opening and showing icons (*.ico-files)
give me wrong colors to see. Who knows
the solution?

Thanks

Jansen Lucas

Posted: Wed Feb 09, 2005 11:14 am
by Philips10
It seems:

With the Delphi-Example and Icons:
-- It won't work with Icons at all
-- Umder Windows 98SE, only with
XP-icons (32bit), I get the wrong color.

With XnView, everything (with Icons)
works fine. So, it should work with the Delphi-
project as well?!

Jansen

Posted: Thu Feb 10, 2005 4:08 pm
by xnview
Philips10 wrote:It seems:

With the Delphi-Example and Icons:
-- It won't work with Icons at all
-- Umder Windows 98SE, only with
XP-icons (32bit), I get the wrong color.

With XnView, everything (with Icons)
works fine. So, it should work with the Delphi-
project as well?!
Yes, a little problem
Before gflLoadBitmap, use lp.Flags := GFL_LOAD_SKIP_ALPHA

Posted: Fri Feb 11, 2005 1:02 am
by Philips10
Mercy,

It works fine!