class PNGFile extends java.lang.Object implements PNGConstants
Modifier and Type | Field and Description |
---|---|
private byte[] |
alphaPalette |
private int |
bitDepth |
private byte[] |
bluePalette |
private int |
blueTransparentAlpha |
private java.awt.image.ColorModel |
colorModel |
private int |
colorType |
private int |
grayTransparentAlpha |
private byte[] |
greenPalette |
private int |
greenTransparentAlpha |
private boolean |
hasAlphaPalette |
private boolean |
hasPalette |
private java.awt.color.ICC_Profile |
iccProfile |
private boolean |
isTransparent |
private int |
paletteEntries |
private byte[] |
redPalette |
private int |
redTransparentAlpha |
private int |
sRGBRenderingIntent |
private java.util.List<java.io.InputStream> |
streamVec |
PNG_COLOR_GRAY, PNG_COLOR_GRAY_ALPHA, PNG_COLOR_PALETTE, PNG_COLOR_RGB, PNG_COLOR_RGB_ALPHA, PNG_FILTER_AVERAGE, PNG_FILTER_NONE, PNG_FILTER_PAETH, PNG_FILTER_SUB, PNG_FILTER_UP, PNG_SIGNATURE
Constructor and Description |
---|
PNGFile(java.io.InputStream stream) |
Modifier and Type | Method and Description |
---|---|
ImageRawPNG |
getImageRawPNG(ImageInfo info) |
private void |
parse_iCCP_chunk(PNGChunk chunk) |
private void |
parse_IHDR_chunk(PNGChunk chunk) |
private void |
parse_PLTE_chunk(PNGChunk chunk) |
private void |
parse_sRGB_chunk(PNGChunk chunk) |
private void |
parse_tRNS_chunk(PNGChunk chunk) |
private java.awt.image.ColorModel colorModel
private java.awt.color.ICC_Profile iccProfile
private int sRGBRenderingIntent
private int bitDepth
private int colorType
private boolean isTransparent
private int grayTransparentAlpha
private int redTransparentAlpha
private int greenTransparentAlpha
private int blueTransparentAlpha
private java.util.List<java.io.InputStream> streamVec
private int paletteEntries
private byte[] redPalette
private byte[] greenPalette
private byte[] bluePalette
private byte[] alphaPalette
private boolean hasPalette
private boolean hasAlphaPalette
public PNGFile(java.io.InputStream stream) throws java.io.IOException, ImageException
java.io.IOException
ImageException
public ImageRawPNG getImageRawPNG(ImageInfo info) throws ImageException
ImageException
private void parse_IHDR_chunk(PNGChunk chunk)
private void parse_PLTE_chunk(PNGChunk chunk)
private void parse_tRNS_chunk(PNGChunk chunk)
private void parse_iCCP_chunk(PNGChunk chunk)
private void parse_sRGB_chunk(PNGChunk chunk)