org.apache.batik.ext.awt.image.codec.png

Class PNGRed

public class PNGRed extends AbstractRed

Field Summary
static intPNG_COLOR_GRAY
static intPNG_COLOR_GRAY_ALPHA
static intPNG_COLOR_PALETTE
static intPNG_COLOR_RGB
static intPNG_COLOR_RGB_ALPHA
static intPNG_FILTER_AVERAGE
static intPNG_FILTER_NONE
static intPNG_FILTER_PAETH
static intPNG_FILTER_SUB
static intPNG_FILTER_UP
Constructor Summary
PNGRed(InputStream stream)
PNGRed(InputStream stream, PNGDecodeParam decodeParam)
Method Summary
WritableRastercopyData(WritableRaster wr)
static ColorModelcreateComponentColorModel(SampleModel sm)
A convenience method to create an instance of ComponentColorModel suitable for use with the given SampleModel.
RastergetTile(int tileX, int tileY)

Field Detail

PNG_COLOR_GRAY

public static final int PNG_COLOR_GRAY

PNG_COLOR_GRAY_ALPHA

public static final int PNG_COLOR_GRAY_ALPHA

PNG_COLOR_PALETTE

public static final int PNG_COLOR_PALETTE

PNG_COLOR_RGB

public static final int PNG_COLOR_RGB

PNG_COLOR_RGB_ALPHA

public static final int PNG_COLOR_RGB_ALPHA

PNG_FILTER_AVERAGE

public static final int PNG_FILTER_AVERAGE

PNG_FILTER_NONE

public static final int PNG_FILTER_NONE

PNG_FILTER_PAETH

public static final int PNG_FILTER_PAETH

PNG_FILTER_SUB

public static final int PNG_FILTER_SUB

PNG_FILTER_UP

public static final int PNG_FILTER_UP

Constructor Detail

PNGRed

public PNGRed(InputStream stream)

PNGRed

public PNGRed(InputStream stream, PNGDecodeParam decodeParam)

Method Detail

copyData

public WritableRaster copyData(WritableRaster wr)

createComponentColorModel

public static ColorModel createComponentColorModel(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.

getTile

public Raster getTile(int tileX, int tileY)
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.