Alpha channel not set correctly with forced colour model

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

Moderators: XnTriq, helmut, xnview

Post Reply
Defenestration
Posts: 52
Joined: Fri Aug 18, 2006 7:08 pm

Alpha channel not set correctly with forced colour model

Post by Defenestration »

For example, when loading an 8-bit image with transparency using forced colour model of BGRA, all pixels have the alpha channel set to 255. Only the pixels that have the same colour as denoted by ColorMap[TransparentIndex] should have the alpha channel set to transparent (ie. 255).
User avatar
xnview
Author of XnView
Posts: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Alpha channel not set correctly with forced colour model

Post by xnview »

Defenestration wrote:For example, when loading an 8-bit image with transparency using forced colour model of BGRA, all pixels have the alpha channel set to 255. Only the pixels that have the same colour as denoted by ColorMap[TransparentIndex] should have the alpha channel set to transparent (ie. 255).
right
Pierre.
Post Reply