Ejemplo n.º 1
0
 public LCMS_Profile(ICC_Profile iccProfile) {
   Long handle = (Long) profileCache.get(iccProfile);
   if (handle == null) {
     byte data[] = iccProfile.getData();
     cmsProfileHandle = LCMS.cmsOpenProfileFromMem(data, data.length);
     profileCache.put(iccProfile, new Long(cmsProfileHandle));
   } else cmsProfileHandle = handle.longValue();
 }
Ejemplo n.º 2
0
 public void dispose() {
   if (cmsProfileHandle != 0) {
     LCMS.cmsCloseProfile(cmsProfileHandle);
     cmsProfileHandle = 0;
   }
 }