0 Replies Latest reply: Mar 2, 2010 9:50 AM by joeln3 RSS

    How to get the ICCProfile (as AC_Profile) from PDEICCBasedColorData

    joeln3 Community Member

      Hello,

       

      I'm wondering how I can retrieve the ICCProfile from PDEICCBasedColorData structure and read it. Currently I do this :

       

      ASStm asStm = pdeColorSpaceStruct.icc->iccstream;

      ASTCount asBytesRead = 0;

      char pBuffer[9999];

       

      asBytesRead = ASStmRead(pBuffer,1,9999,asStm); // Note that the buffer is large enough in my case

      AC_Profile acProfile;

      ACMakeBufferProfile(&acProfile, asStm, asBytesRead);

       

      But I have nothing in the acProfile. What's wrong? Maybe this is not the easier way to retrieve Color Profile...

       

      Thanks in advance,

      Joe