Class PNGFile
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.PNGFile
- All Implemented Interfaces:
PNGConstants
Provides methods useful for processing PNG files.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private int
private byte[]
private int
private ColorModel
private int
private int
private byte[]
private int
private boolean
private boolean
private ICC_Profile
private boolean
private int
private byte[]
private int
private int
private List
<InputStream> 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 -
Method Summary
Modifier and TypeMethodDescriptiongetImageRawPNG
(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 Details
-
colorModel
-
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
-
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 Details
-
PNGFile
- Throws:
IOException
ImageException
-
-
Method Details
-
getImageRawPNG
- Throws:
ImageException
-
parse_IHDR_chunk
-
parse_PLTE_chunk
-
parse_tRNS_chunk
-
parse_iCCP_chunk
-
parse_sRGB_chunk
-