/** * A convenience method that calls the array version. */ public void setChromaticity(float whitePointX, float whitePointY, float redX, float redY, float greenX, float greenY, float blueX, float blueY) { float[] chroma = new float[8]; chroma[0] = whitePointX; chroma[1] = whitePointY; chroma[2] = redX; chroma[3] = redY; chroma[4] = greenX; chroma[5] = greenY; chroma[6] = blueX; chroma[7] = blueY; setChromaticity(chroma); }
/** * A convenience method that calls the array version. */ public void setChromaticity(float whitePointX, float whitePointY, float redX, float redY, float greenX, float greenY, float blueX, float blueY) { float[] chroma = new float[8]; chroma[0] = whitePointX; chroma[1] = whitePointY; chroma[2] = redX; chroma[3] = redY; chroma[4] = greenX; chroma[5] = greenY; chroma[6] = blueX; chroma[7] = blueY; setChromaticity(chroma); }
/** * A convenience method that calls the array version. */ public void setChromaticity(float whitePointX, float whitePointY, float redX, float redY, float greenX, float greenY, float blueX, float blueY) { float[] chroma = new float[8]; chroma[0] = whitePointX; chroma[1] = whitePointY; chroma[2] = redX; chroma[3] = redY; chroma[4] = greenX; chroma[5] = greenY; chroma[6] = blueX; chroma[7] = blueY; setChromaticity(chroma); }
/** * A convenience method that calls the array version. */ public void setChromaticity(float whitePointX, float whitePointY, float redX, float redY, float greenX, float greenY, float blueX, float blueY) { float[] chroma = new float[8]; chroma[0] = whitePointX; chroma[1] = whitePointY; chroma[2] = redX; chroma[3] = redY; chroma[4] = greenX; chroma[5] = greenY; chroma[6] = blueX; chroma[7] = blueY; setChromaticity(chroma); }
if (encodeParam != null) { encodeParam.setGamma(gamma); encodeParam.setChromaticity(chromaticity);
if (encodeParam != null) { encodeParam.setGamma(gamma); encodeParam.setChromaticity(chromaticity);
if (encodeParam != null) { encodeParam.setGamma(gamma); encodeParam.setChromaticity(chromaticity);
if (encodeParam != null) { encodeParam.setGamma(gamma); encodeParam.setChromaticity(chromaticity);
if (encodeParam != null) { encodeParam.setGamma(gamma); encodeParam.setChromaticity(chromaticity);
if (encodeParam != null) { encodeParam.setGamma(gamma); encodeParam.setChromaticity(chromaticity);
if (encodeParam != null) { encodeParam.setGamma(gamma); encodeParam.setChromaticity(chromaticity);
if (encodeParam != null) { encodeParam.setGamma(gamma); encodeParam.setChromaticity(chromaticity);
private void parse_cHRM_chunk(PNGChunk chunk) { // If an sRGB chunk exists, ignore cHRM chunks if (sRGBRenderingIntent != -1) { return; } chromaticity = new float[8]; chromaticity[0] = chunk.getInt4(0)/100000.0F; chromaticity[1] = chunk.getInt4(4)/100000.0F; chromaticity[2] = chunk.getInt4(8)/100000.0F; chromaticity[3] = chunk.getInt4(12)/100000.0F; chromaticity[4] = chunk.getInt4(16)/100000.0F; chromaticity[5] = chunk.getInt4(20)/100000.0F; chromaticity[6] = chunk.getInt4(24)/100000.0F; chromaticity[7] = chunk.getInt4(28)/100000.0F; if (encodeParam != null) { encodeParam.setChromaticity(chromaticity); } if (emitProperties) { properties.put("white_point_x", new Float(chromaticity[0])); properties.put("white_point_y", new Float(chromaticity[1])); properties.put("red_x", new Float(chromaticity[2])); properties.put("red_y", new Float(chromaticity[3])); properties.put("green_x", new Float(chromaticity[4])); properties.put("green_y", new Float(chromaticity[5])); properties.put("blue_x", new Float(chromaticity[6])); properties.put("blue_y", new Float(chromaticity[7])); } }
private void parse_cHRM_chunk(PNGChunk chunk) { // If an sRGB chunk exists, ignore cHRM chunks if (sRGBRenderingIntent != -1) { return; } chromaticity = new float[8]; chromaticity[0] = chunk.getInt4(0)/100000.0F; chromaticity[1] = chunk.getInt4(4)/100000.0F; chromaticity[2] = chunk.getInt4(8)/100000.0F; chromaticity[3] = chunk.getInt4(12)/100000.0F; chromaticity[4] = chunk.getInt4(16)/100000.0F; chromaticity[5] = chunk.getInt4(20)/100000.0F; chromaticity[6] = chunk.getInt4(24)/100000.0F; chromaticity[7] = chunk.getInt4(28)/100000.0F; if (encodeParam != null) { encodeParam.setChromaticity(chromaticity); } if (emitProperties) { properties.put("white_point_x", new Float(chromaticity[0])); properties.put("white_point_y", new Float(chromaticity[1])); properties.put("red_x", new Float(chromaticity[2])); properties.put("red_y", new Float(chromaticity[3])); properties.put("green_x", new Float(chromaticity[4])); properties.put("green_y", new Float(chromaticity[5])); properties.put("blue_x", new Float(chromaticity[6])); properties.put("blue_y", new Float(chromaticity[7])); } }
private void parse_cHRM_chunk(PNGChunk chunk) { // If an sRGB chunk exists, ignore cHRM chunks if (sRGBRenderingIntent != -1) { return; } chromaticity = new float[8]; chromaticity[0] = chunk.getInt4(0)/100000.0F; chromaticity[1] = chunk.getInt4(4)/100000.0F; chromaticity[2] = chunk.getInt4(8)/100000.0F; chromaticity[3] = chunk.getInt4(12)/100000.0F; chromaticity[4] = chunk.getInt4(16)/100000.0F; chromaticity[5] = chunk.getInt4(20)/100000.0F; chromaticity[6] = chunk.getInt4(24)/100000.0F; chromaticity[7] = chunk.getInt4(28)/100000.0F; if (encodeParam != null) { encodeParam.setChromaticity(chromaticity); } if (emitProperties) { properties.put("white_point_x", new Float(chromaticity[0])); properties.put("white_point_y", new Float(chromaticity[1])); properties.put("red_x", new Float(chromaticity[2])); properties.put("red_y", new Float(chromaticity[3])); properties.put("green_x", new Float(chromaticity[4])); properties.put("green_y", new Float(chromaticity[5])); properties.put("blue_x", new Float(chromaticity[6])); properties.put("blue_y", new Float(chromaticity[7])); } }
private void parse_cHRM_chunk(PNGChunk chunk) { // If an sRGB chunk exists, ignore cHRM chunks if (sRGBRenderingIntent != -1) { return; } chromaticity = new float[8]; chromaticity[0] = chunk.getInt4(0)/100000.0F; chromaticity[1] = chunk.getInt4(4)/100000.0F; chromaticity[2] = chunk.getInt4(8)/100000.0F; chromaticity[3] = chunk.getInt4(12)/100000.0F; chromaticity[4] = chunk.getInt4(16)/100000.0F; chromaticity[5] = chunk.getInt4(20)/100000.0F; chromaticity[6] = chunk.getInt4(24)/100000.0F; chromaticity[7] = chunk.getInt4(28)/100000.0F; if (encodeParam != null) { encodeParam.setChromaticity(chromaticity); } if (emitProperties) { properties.put("white_point_x", new Float(chromaticity[0])); properties.put("white_point_y", new Float(chromaticity[1])); properties.put("red_x", new Float(chromaticity[2])); properties.put("red_y", new Float(chromaticity[3])); properties.put("green_x", new Float(chromaticity[4])); properties.put("green_y", new Float(chromaticity[5])); properties.put("blue_x", new Float(chromaticity[6])); properties.put("blue_y", new Float(chromaticity[7])); } }
private void parse_cHRM_chunk(PNGChunk chunk) { // If an sRGB chunk exists, ignore cHRM chunks if (sRGBRenderingIntent != -1) { return; } chromaticity = new float[8]; chromaticity[0] = chunk.getInt4(0)/100000.0F; chromaticity[1] = chunk.getInt4(4)/100000.0F; chromaticity[2] = chunk.getInt4(8)/100000.0F; chromaticity[3] = chunk.getInt4(12)/100000.0F; chromaticity[4] = chunk.getInt4(16)/100000.0F; chromaticity[5] = chunk.getInt4(20)/100000.0F; chromaticity[6] = chunk.getInt4(24)/100000.0F; chromaticity[7] = chunk.getInt4(28)/100000.0F; if (encodeParam != null) { encodeParam.setChromaticity(chromaticity); } if (emitProperties) { properties.put("white_point_x", chromaticity[0]); properties.put("white_point_y", chromaticity[1]); properties.put("red_x", chromaticity[2]); properties.put("red_y", chromaticity[3]); properties.put("green_x", chromaticity[4]); properties.put("green_y", chromaticity[5]); properties.put("blue_x", chromaticity[6]); properties.put("blue_y", chromaticity[7]); } }
private void parse_cHRM_chunk(PNGChunk chunk) { // If an sRGB chunk exists, ignore cHRM chunks if (sRGBRenderingIntent != -1) { return; } chromaticity = new float[8]; chromaticity[0] = chunk.getInt4(0)/100000.0F; chromaticity[1] = chunk.getInt4(4)/100000.0F; chromaticity[2] = chunk.getInt4(8)/100000.0F; chromaticity[3] = chunk.getInt4(12)/100000.0F; chromaticity[4] = chunk.getInt4(16)/100000.0F; chromaticity[5] = chunk.getInt4(20)/100000.0F; chromaticity[6] = chunk.getInt4(24)/100000.0F; chromaticity[7] = chunk.getInt4(28)/100000.0F; if (encodeParam != null) { encodeParam.setChromaticity(chromaticity); } if (emitProperties) { properties.put("white_point_x", chromaticity[0]); properties.put("white_point_y", chromaticity[1]); properties.put("red_x", chromaticity[2]); properties.put("red_y", chromaticity[3]); properties.put("green_x", chromaticity[4]); properties.put("green_y", chromaticity[5]); properties.put("blue_x", chromaticity[6]); properties.put("blue_y", chromaticity[7]); } }
private void parse_cHRM_chunk(PNGChunk chunk) { // If an sRGB chunk exists, ignore cHRM chunks if (sRGBRenderingIntent != -1) { return; } chromaticity = new float[8]; chromaticity[0] = chunk.getInt4(0)/100000.0F; chromaticity[1] = chunk.getInt4(4)/100000.0F; chromaticity[2] = chunk.getInt4(8)/100000.0F; chromaticity[3] = chunk.getInt4(12)/100000.0F; chromaticity[4] = chunk.getInt4(16)/100000.0F; chromaticity[5] = chunk.getInt4(20)/100000.0F; chromaticity[6] = chunk.getInt4(24)/100000.0F; chromaticity[7] = chunk.getInt4(28)/100000.0F; if (encodeParam != null) { encodeParam.setChromaticity(chromaticity); } if (emitProperties) { properties.put("white_point_x", chromaticity[0]); properties.put("white_point_y", chromaticity[1]); properties.put("red_x", chromaticity[2]); properties.put("red_y", chromaticity[3]); properties.put("green_x", chromaticity[4]); properties.put("green_y", chromaticity[5]); properties.put("blue_x", chromaticity[6]); properties.put("blue_y", chromaticity[7]); } }
private void parse_cHRM_chunk(PNGChunk chunk) { // If an sRGB chunk exists, ignore cHRM chunks if (sRGBRenderingIntent != -1) { return; } chromaticity = new float[8]; chromaticity[0] = chunk.getInt4(0)/100000.0F; chromaticity[1] = chunk.getInt4(4)/100000.0F; chromaticity[2] = chunk.getInt4(8)/100000.0F; chromaticity[3] = chunk.getInt4(12)/100000.0F; chromaticity[4] = chunk.getInt4(16)/100000.0F; chromaticity[5] = chunk.getInt4(20)/100000.0F; chromaticity[6] = chunk.getInt4(24)/100000.0F; chromaticity[7] = chunk.getInt4(28)/100000.0F; if (encodeParam != null) { encodeParam.setChromaticity(chromaticity); } if (emitProperties) { properties.put("white_point_x", chromaticity[0]); properties.put("white_point_y", chromaticity[1]); properties.put("red_x", chromaticity[2]); properties.put("red_y", chromaticity[3]); properties.put("green_x", chromaticity[4]); properties.put("green_y", chromaticity[5]); properties.put("blue_x", chromaticity[6]); properties.put("blue_y", chromaticity[7]); } }