Alpha channel not set correctly with forced colour model

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

Moderators: XnTriq, xnview

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

Alpha channel not set correctly with forced colour model

Post by Defenestration » Sun Dec 07, 2008 3:32 am

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

Re: Alpha channel not set correctly with forced colour model

Post by xnview » Sun Dec 07, 2008 9:50 am

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