Icons wih Delphi-example - wrong colors

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

Philips10
Posts: 7
Joined: Wed Feb 09, 2005 9:36 am

Icons wih Delphi-example - wrong colors

Post 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
Philips10
Posts: 7
Joined: Wed Feb 09, 2005 9:36 am

Post 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
User avatar
xnview
Author of XnView
Posts: 36805
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post 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
Pierre.
Philips10
Posts: 7
Joined: Wed Feb 09, 2005 9:36 am

Post by Philips10 »

Mercy,

It works fine!