Class PNGRed

  • All Implemented Interfaces:
    java.awt.image.RenderedImage, CachableRed

    public class PNGRed
    extends AbstractRed
    • Constructor Detail

      • PNGRed

        public PNGRed​(java.io.InputStream stream)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • PNGRed

        public PNGRed​(java.io.InputStream stream,
                      PNGDecodeParam decodeParam)
               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • createComponentColorModel

        public static java.awt.image.ColorModel createComponentColorModel​(java.awt.image.SampleModel sm)
        A convenience method to create an instance of ComponentColorModel suitable for use with the given SampleModel. The SampleModel should have a data type of DataBuffer.TYPE_BYTE, TYPE_USHORT, or TYPE_INT and between 1 and 4 bands. Depending on the number of bands of the SampleModel, either a gray, gray+alpha, rgb, or rgb+alpha ColorModel is returned.
      • copyData

        public java.awt.image.WritableRaster copyData​(java.awt.image.WritableRaster wr)
      • getTile

        public java.awt.image.Raster getTile​(int tileX,
                                             int tileY)
        Specified by:
        getTile in interface java.awt.image.RenderedImage
        Overrides:
        getTile in class AbstractRed