2004.02.27 17:13 "[Tiff] adding compilation flag to set the ARGB as native win32 format", by Frederic Delhoume

2004.02.27 17:13 "[Tiff] adding compilation flag to set the ARGB as native win32 format", by Frederic Delhoume

Hi,

I would like to be able to use directly the ARGB interface as an input to win32 DibSections. The windows format is BGRA. I have tried to modify the 5 macros in tif_getimage.c (A1, PACK, PACK4, PACKW and PACKW4) but had no success.

I am joining a simple (150 lines of c++), very easy to compile with any Windows compiler. It might be one of the simplest viewers around!! Image must be named image.tif

Using the sample as is, it is obvious that colors are not correct if SwapBytes is commented.

Having DIBSections support directly in libtiff would save me some heavy systematic computation.

Fr�d�ric.

- Vliv, the very large image viewer for Windows
- http://delhoume.frederic.free.fr/vliv.htm