| 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.08.16 21:48 "Re: ICC profile in tiff file on windows", by Alexander CohenOn 16-Aug-04, at 5:04 PM, Chris Cox wrote:
> Sigh.
>
> HOW are you reading the tag data?
I made some simple getters for the icc profile since TIFFGetTag was not
working on windows like it should, but my way gives me the same
results, here's my code:
void
TIFFGetICCProfileData(TIFF* tif, void * data )
{
if (!data) return;
TIFFDirectory* td = &tif->tif_dir;
memcpy( data, td->td_profileData, td->td_profileLength );
}
int
TIFFGetICCProfileSize(TIFF* tif )
{
TIFFDirectory* td = &tif->tif_dir;
return td->td_profileLength;
}
> If you write it to a file, the file should be identical between
> Macintosh and Windows.
my thoughts the same.
Alex
|
|||||||