org.apache.batik.ext.awt.image.codec.png
public class PNGRed extends AbstractRed
Field Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
PNGRed(InputStream stream) | |
PNGRed(InputStream stream, PNGDecodeParam decodeParam) |
Method Summary | |
---|---|
WritableRaster | copyData(WritableRaster wr) |
static ColorModel | createComponentColorModel(SampleModel sm)
A convenience method to create an instance of
ComponentColorModel suitable for use with the
given SampleModel . |
Raster | getTile(int tileX, int tileY) |
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.