Package com.sixlegs.png
Class PngImage
java.lang.Object
com.sixlegs.png.PngImage
- All Implemented Interfaces:
java.awt.Transparency
public class PngImage
extends java.lang.Object
implements java.awt.Transparency
-
Field Summary
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected java.awt.image.BufferedImage
createImage(java.io.InputStream inputStream, java.awt.Dimension dimension)
java.awt.Color
getBackground()
int
getBitDepth()
int
getColorType()
PngConfig
getConfig()
float
getGamma()
short[]
getGammaTable()
int
getHeight()
java.util.Map
getProperties()
java.lang.Object
getProperty(java.lang.String string)
int
getSamples()
TextChunk
getTextChunk(java.lang.String string)
int
getTransparency()
int
getWidth()
protected boolean
handlePass(java.awt.image.BufferedImage bufferedImage, int int1)
protected boolean
handleProgress(java.awt.image.BufferedImage bufferedImage, float float1)
protected void
handleWarning(PngException pngException)
boolean
isInterlaced()
protected boolean
isMultipleOK(int int1)
java.awt.image.BufferedImage
read(java.io.File file)
java.awt.image.BufferedImage
read(java.io.InputStream inputStream, boolean boolean1)
protected void
readChunk(int int1, java.io.DataInput dataInput, long long1, int int2)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PngImage
public PngImage() -
PngImage
-
-
Method Details
-
getConfig
-
read
public java.awt.image.BufferedImage read(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
read
public java.awt.image.BufferedImage read(java.io.InputStream inputStream, boolean boolean1) throws java.io.IOException- Throws:
java.io.IOException
-
createImage
protected java.awt.image.BufferedImage createImage(java.io.InputStream inputStream, java.awt.Dimension dimension) throws java.io.IOException- Throws:
java.io.IOException
-
handlePass
protected boolean handlePass(java.awt.image.BufferedImage bufferedImage, int int1) -
handleProgress
protected boolean handleProgress(java.awt.image.BufferedImage bufferedImage, float float1) -
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 interfacejava.awt.Transparency
-
getSamples
public int getSamples() -
getGamma
public float getGamma() -
getGammaTable
public short[] getGammaTable() -
getBackground
public java.awt.Color getBackground() -
getProperty
public java.lang.Object getProperty(java.lang.String string) -
getProperties
public java.util.Map getProperties() -
getTextChunk
-
readChunk
protected void readChunk(int int1, java.io.DataInput dataInput, long long1, int int2) throws java.io.IOException- Throws:
java.io.IOException
-
isMultipleOK
protected boolean isMultipleOK(int int1)
-