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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BufferedImagecreateImage(InputStream inputStream, Dimension dimension) intintfloatgetGamma()short[]intgetProperty(String string) intgetTextChunk(String string) intintgetWidth()protected booleanhandlePass(BufferedImage bufferedImage, int int1) protected booleanhandleProgress(BufferedImage bufferedImage, float float1) protected voidhandleWarning(PngException pngException) booleanprotected booleanisMultipleOK(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:
getTransparencyin 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)
-