Package com.sixlegs.png
Class PngImage
java.lang.Object
com.sixlegs.png.PngImage
- All Implemented Interfaces:
Transparency
-
Field Summary
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BufferedImage
createImage
(InputStream inputStream, Dimension dimension) int
int
float
getGamma()
short[]
int
getProperty
(String string) int
getTextChunk
(String string) int
int
getWidth()
protected boolean
handlePass
(BufferedImage bufferedImage, int int1) protected boolean
handleProgress
(BufferedImage bufferedImage, float float1) protected void
handleWarning
(PngException pngException) boolean
protected boolean
isMultipleOK
(int int1) read
(InputStream inputStream, boolean boolean1) protected void
-
Constructor Details
-
PngImage
public PngImage() -
PngImage
-
-
Method Details
-
getConfig
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
createImage
protected BufferedImage createImage(InputStream inputStream, Dimension dimension) throws IOException - Throws:
IOException
-
handlePass
-
handleProgress
-
handleWarning
- Throws:
PngException
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getBitDepth
public int getBitDepth() -
isInterlaced
public boolean isInterlaced() -
getColorType
public int getColorType() -
getTransparency
public int getTransparency()- Specified by:
getTransparency
in interfaceTransparency
-
getSamples
public int getSamples() -
getGamma
public float getGamma() -
getGammaTable
public short[] getGammaTable() -
getBackground
-
getProperty
-
getProperties
-
getTextChunk
-
readChunk
- Throws:
IOException
-
isMultipleOK
protected boolean isMultipleOK(int int1)
-