AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
September 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.09.24 19:42 "tiff-3.7.0beta adds", by Gennady Khokhorin
2004.09.25 18:37 "Re: tiff-3.7.0beta adds", by Andrey Kiselev

2004.09.24 19:42 "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