|
xmlgraphics-commons 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.loader.impl.AbstractImage
org.apache.xmlgraphics.image.loader.impl.ImageRawStream
org.apache.xmlgraphics.image.loader.impl.ImageRawPNG
public class ImageRawPNG
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.xmlgraphics.image.loader.impl.ImageRawStream |
---|
ImageRawStream.ByteArrayStreamFactory, ImageRawStream.InputStreamFactory |
Constructor Summary | |
---|---|
ImageRawPNG(ImageInfo info,
InputStream in,
ColorModel colorModel,
int bitDepth,
ICC_Profile iccProfile)
Main constructor. |
Method Summary | |
---|---|
int |
getBitDepth()
The bit depth of each color channel. |
ColorModel |
getColorModel()
Returns the image's color model. |
ColorSpace |
getColorSpace()
Returns the image's color space. |
ICC_Profile |
getICCProfile()
Returns the ICC color profile if one is associated with the PNG image. |
int |
getRenderingIntent()
Returns the rendering intent of the sRGB color space. |
Color |
getTransparentColor()
The color of the transparent pixel. |
boolean |
isTransparent()
Whether the image is transparent (meaning there is a transparent pixel) |
protected void |
setGrayTransparentAlpha(int gray)
Sets the gray transparent pixel value. |
void |
setRenderingIntent(int intent)
Used to set the rendering intent when the color space is sRGB. |
protected void |
setRGBTransparentAlpha(int red,
int green,
int blue)
Sets the RGB transparent pixel values. |
protected void |
setTransparent()
Used to flag image as transparent when the image is of pallete type. |
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.ImageRawStream |
---|
createInputStream, getFlavor, getMimeType, isCacheable, setInputStreamFactory, writeTo |
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImage |
---|
getInfo, getSize, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImageRawPNG(ImageInfo info, InputStream in, ColorModel colorModel, int bitDepth, ICC_Profile iccProfile)
info
- the image info objectin
- the ImageInputStream with the raw contentcolorModel
- the color modelbitDepth
- the bit depthiccProfile
- an ICC color profile or null if no profile is associatedMethod Detail |
---|
public int getBitDepth()
public ICC_Profile getICCProfile()
getICCProfile
in interface Image
getICCProfile
in class AbstractImage
public ColorModel getColorModel()
public ColorSpace getColorSpace()
getColorSpace
in interface Image
getColorSpace
in class AbstractImage
protected void setGrayTransparentAlpha(int gray)
gray
- the transparent pixel gray value (0...255)protected void setRGBTransparentAlpha(int red, int green, int blue)
red
- the transparent pixel red value (0...255)green
- the transparent pixel green value (0...255)blue
- the transparent pixel blue value (0...255)protected void setTransparent()
public boolean isTransparent()
public Color getTransparentColor()
public void setRenderingIntent(int intent)
intent
- the rendering intent of the sRGB color spacepublic int getRenderingIntent()
|
xmlgraphics-commons 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |