Class SRGBReader

java.lang.Object
pixy.image.png.SRGBReader
All Implemented Interfaces:
Reader

public class SRGBReader
extends java.lang.Object
implements Reader
PNG sRGB chunk reader
Version:
1.0 10/16/2013
Author:
Wen Yu, yuwen_66@yahoo.com
  • Constructor Summary

    Constructors 
    Constructor Description
    SRGBReader​(Chunk chunk)  
  • Method Summary

    Modifier and Type Method Description
    byte getRenderingIntent()
    sRGB rendering intent:
    void read()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getRenderingIntent

      public byte getRenderingIntent()
      sRGB rendering intent:

      0 - Perceptual: for images preferring good adaptation to the output device gamut at the expense of colorimetric accuracy, such as photographs.

      1 - Relative colorimetric: for images requiring colour appearance matching (relative to the output device white point), such as logos.

      2 - Saturation: for images preferring preservation of saturation at the expense of hue and lightness, such as charts and graphs.

      3 - Absolute colorimetric: for images requiring preservation of absolute colorimetry, such as previews of images destined for a different output device (proofs).

    • read

      public void read() throws java.io.IOException
      Specified by:
      read in interface Reader
      Throws:
      java.io.IOException