Methods Summary |
---|
public static int | getBigEndianFromByteArray(byte[] byteArray, int idx)Utility method.
Gets big endian integer value from the byte array
return ((byteArray[idx] & 0xFF) << 24) |
((byteArray[idx+1] & 0xFF) << 16) |
((byteArray[idx+2] & 0xFF) << 8) |
( byteArray[idx+3] & 0xFF);
|
public static int | getIntFromByteArray(byte[] byteArray, int idx)Utility method.
Gets integer value from the byte array
return (byteArray[idx] & 0xFF)|
((byteArray[idx+1] & 0xFF) << 8) |
((byteArray[idx+2] & 0xFF) << 16)|
((byteArray[idx+3] & 0xFF) << 24);
|
public static int | getRenderingIntent(java.awt.color.ICC_Profile profile)Used in ICC_Transform class to check the rendering intent of the profile
return getIntFromByteArray(
profile.getData(ICC_Profile.icSigHead), // pf header
ICC_Profile.icHdrRenderingIntent
);
|
public static short | getShortFromByteArray(byte[] byteArray, int idx)Utility method.
Gets short value from the byte array
return (short) ((byteArray[idx] & 0xFF) |
((byteArray[idx+1] & 0xFF) << 8));
|