Windows Vista Beta | WinVistaBeta.com - Message | palette type images with WIC Decoder

July 03, 2008  
Subject: palette type images with WIC Decoder
Group: microsoft.public.windows.developer.winfx.sdk
Date: 6/4/2007 3:50:00 AM
From: =?Utf-8?B?c2VyYQ==?= [Email Address Protection]

I tried writing a custom decoder for png files using WIC. I have a problem in
displaying the palette type images. Can any one help me to understand the
initialization of IWICPalette with the color table entries.

I use InitializeCustom(colors, numcolors) for initialization of the
IWICPalette.
color - represent the WICColor array.
For a 1bpp indexed palette type image what should be the value of numcolors?

what should be the size of the WICColor array?

How do i store the RGB triplet values for each index?

Back