Hi

Mitesh wrote:

> So, my problem is how do I obtain the raw ICC profile data from HPROFILE and
> embed into the Tiff file?

Provided the profile is generated with one of LCMS's built in "virtual 
profile" functions, as described in the API documentation, you can save 
it to memory like this:

size_t plen=0;
_cmsSaveProfileToMem(prof,NULL,&plen);
if(plen>0)
{
        cerr << "Plen = " << plen << endl;
        char *buffer=(char *)malloc(plen);
        if(_cmsSaveProfileToMem(prof,buffer,&plen))
        {
                cerr << "Saved successfully to memory block" << endl;
        }
}

Note, however, that the _cmsSaveProfile() function is deprecated in the 
API documentation - though I can't see how it's intended to be replaced.

Anyone else know?

All the best
--
Alastair M. Robinson


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to