| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2004.09.24 19:42 "tiff-3.7.0beta adds", by Gennady KhokhorinI 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 |
|||||||