Raj585591

what format is WICColor stored. Is it 0x00bbggrr or 0xrrggbb00

WICColor is defined as typedef of UINT32.

Can any one explain how do i store the palette entries(RGB Triplet) in WICColor.



Re: Visual C++ Express Edition WICColor storage format

nobugz

This MSDN article sure makes it sound that it depends on the pixel format you choose. Yuck, what a mess.





Re: Visual C++ Express Edition WICColor storage format

Raj

I need the information for Indexed pixel format(palette type images) where IWICPalette has to initialized with WICColor array.

How do i initialize the palette





Re: Visual C++ Express Edition WICColor storage format

nobugz

Why don't you try it Try 0x00rrggbb first, that's the order in regular bitmaps, then 0x00bbggrr. It should be obvious when it is backwards.