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

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: 44325
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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.