2004.09.24 19:42 "[Tiff] tiff-3.7.0beta adds", by Gennady Khokhorin
I would like to add macros usefull to handle RGBA pixel's values (file tiffio.h, after line 242 #define TIFFGetA()):
// gok: macros setting componets in ABGR pack
#define TIFFSetR(abgr, v) (((v & 0xff) << 0) | (abgr & ~(0xff << 0)))
#define TIFFSetG(abgr, v) (((v & 0xff) << 8) | (abgr & ~(0xff << 8)))
#define TIFFSetB(abgr, v) (((v & 0xff) << 16) | (abgr & ~(0xff << 16)))
#define TIFFSetA(abgr, v) (((v & 0xff) << 24) | (abgr & ~(0xff << 24)))
To build .dll version with msvc it could be usefull to include in distribution .def file (attached).
Thanks.
Gennady Khokhorin
Software Developer,
AeroMap US, Intl
www.aeromap.com