Class PNGFile
- java.lang.Object
-
- org.apache.xmlgraphics.image.loader.impl.PNGFile
-
- All Implemented Interfaces:
PNGConstants
class PNGFile extends java.lang.Object implements PNGConstants
Provides methods useful for processing PNG files.
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from interface org.apache.xmlgraphics.image.loader.impl.PNGConstants
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 Summary
Constructors Constructor Description PNGFile(java.io.InputStream stream, java.lang.String uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
colorModel
private java.awt.image.ColorModel colorModel
-
iccProfile
private java.awt.color.ICC_Profile iccProfile
-
sRGBRenderingIntent
private int sRGBRenderingIntent
-
bitDepth
private int bitDepth
-
colorType
private int colorType
-
isTransparent
private boolean isTransparent
-
grayTransparentAlpha
private int grayTransparentAlpha
-
redTransparentAlpha
private int redTransparentAlpha
-
greenTransparentAlpha
private int greenTransparentAlpha
-
blueTransparentAlpha
private int blueTransparentAlpha
-
streamVec
private java.util.List<java.io.InputStream> streamVec
-
paletteEntries
private int paletteEntries
-
redPalette
private byte[] redPalette
-
greenPalette
private byte[] greenPalette
-
bluePalette
private byte[] bluePalette
-
alphaPalette
private byte[] alphaPalette
-
hasPalette
private boolean hasPalette
-
hasAlphaPalette
private boolean hasAlphaPalette
-
-
Constructor Detail
-
PNGFile
public PNGFile(java.io.InputStream stream, java.lang.String uri) throws java.io.IOException, ImageException
- Throws:
java.io.IOException
ImageException
-
-
Method Detail
-
getImageRawPNG
public ImageRawPNG getImageRawPNG(ImageInfo info) throws ImageException
- Throws:
ImageException
-
parse_IHDR_chunk
private void parse_IHDR_chunk(PNGChunk chunk)
-
parse_PLTE_chunk
private void parse_PLTE_chunk(PNGChunk chunk)
-
parse_tRNS_chunk
private void parse_tRNS_chunk(PNGChunk chunk)
-
parse_iCCP_chunk
private void parse_iCCP_chunk(PNGChunk chunk)
-
parse_sRGB_chunk
private void parse_sRGB_chunk(PNGChunk chunk)
-
-