public class PNGRed extends AbstractRed
Modifier and Type | Field and Description |
---|---|
static int |
PNG_COLOR_GRAY |
static int |
PNG_COLOR_GRAY_ALPHA |
static int |
PNG_COLOR_PALETTE |
static int |
PNG_COLOR_RGB |
static int |
PNG_COLOR_RGB_ALPHA |
static int |
PNG_FILTER_AVERAGE |
static int |
PNG_FILTER_NONE |
static int |
PNG_FILTER_PAETH |
static int |
PNG_FILTER_SUB |
static int |
PNG_FILTER_UP |
cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth
Constructor and Description |
---|
PNGRed(java.io.InputStream stream) |
PNGRed(java.io.InputStream stream,
PNGDecodeParam decodeParam) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.WritableRaster |
copyData(java.awt.image.WritableRaster wr) |
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 . |
java.awt.image.Raster |
getTile(int tileX,
int tileY) |
copyBand, copyToRaster, getBounds, getColorModel, getData, getData, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, init, init, makeTile, updateTileGridInfo
public static final int PNG_COLOR_GRAY
public static final int PNG_COLOR_RGB
public static final int PNG_COLOR_PALETTE
public static final int PNG_COLOR_GRAY_ALPHA
public static final int PNG_COLOR_RGB_ALPHA
public static final int PNG_FILTER_NONE
public static final int PNG_FILTER_SUB
public static final int PNG_FILTER_UP
public static final int PNG_FILTER_AVERAGE
public static final int PNG_FILTER_PAETH
public PNGRed(java.io.InputStream stream) throws java.io.IOException
java.io.IOException
public PNGRed(java.io.InputStream stream, PNGDecodeParam decodeParam) throws java.io.IOException
java.io.IOException
public static java.awt.image.ColorModel createComponentColorModel(java.awt.image.SampleModel sm)
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.public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)
public java.awt.image.Raster getTile(int tileX, int tileY)
getTile
in interface java.awt.image.RenderedImage
getTile
in class AbstractRed
Copyright © 2022 Apache Software Foundation. All Rights Reserved.