|
aXSL API 0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for "graphics". Graphics, as used here, may include:
Field Summary | |
static byte |
COMPRESSION_CCITT_FAX
Constant indicating a CCITT Fax compression scheme. |
static byte |
COMPRESSION_DCT
Constant indicating a DCT compression scheme. |
static byte |
COMPRESSION_UNKNOWN
Constant indicating an unknown compression scheme. |
static byte |
TYPE_BMP
Constant indicating a BMP image. |
static byte |
TYPE_EPS
Constant indicating an EPS graphic. |
static byte |
TYPE_GIF
Constant indicating a GIG image. |
static byte |
TYPE_JPEG
Constant indicating a JPEG image. |
static byte |
TYPE_PDF
Constant indicating a PDF graphic. |
static byte |
TYPE_SVG
Constant indicating an SVG graphic. |
static byte |
TYPE_TIFF
Constant indicating a TIFF image. |
static byte |
TYPE_UNKNOWN
Constant indicating an unknown graphic type. |
Method Summary | |
int |
absoluteHeight(int pixelsPerInch)
For image formats that store such information, return the image height, in millipoints. |
int |
absoluteWidth(int pixelsPerInch)
For image formats that store such information, return the image width, in millipoints. |
void |
close()
Free all resources. |
int |
getBitsPerPixel()
Return the number of bits per pixel. |
java.awt.color.ColorSpace |
getColorSpace()
Return the image color space: DeviceGray, DeviceRGB, or DeviceCMYK. |
int |
getCompressionType()
Indicates the type of compression used in this graphic. |
byte[] |
getContent()
Return the graphic content (uncompressed). |
int |
getContentSize()
Return the graphic content size, in bytes (uncompressed). |
int |
getGraphicType()
Indicates the type of this graphic. |
java.lang.String |
getMimeType()
Return corresponding mime type. |
java.lang.String |
getName()
Return the name of the Graphic. |
java.awt.Color |
getTransparentColor()
Return the transparent color. |
java.net.URL |
getURL()
Return the image URL. |
boolean |
isInverted()
Indicates whether a graphic has its colors inverted. |
boolean |
isTransparent()
Return the image transparency. |
int |
pixelHeight()
Return the image height, in pixels, if available. |
int |
pixelWidth()
Return the image width, in pixels, if available. |
Field Detail |
public static final byte TYPE_UNKNOWN
public static final byte TYPE_TIFF
public static final byte TYPE_SVG
public static final byte TYPE_JPEG
public static final byte TYPE_GIF
public static final byte TYPE_EPS
public static final byte TYPE_BMP
public static final byte TYPE_PDF
public static final byte COMPRESSION_UNKNOWN
public static final byte COMPRESSION_DCT
public static final byte COMPRESSION_CCITT_FAX
Method Detail |
public boolean isInverted()
public java.net.URL getURL()
public int pixelWidth() throws GraphicException
GraphicException
- Error occurred in parsing of Graphic file.public int pixelHeight() throws GraphicException
GraphicException
- Error occurred in parsing of Graphic file.public int absoluteWidth(int pixelsPerInch) throws GraphicException
pixelsPerInch
- The density factor that should be used if the
graphic does not know its absolute width, but does know its pixel width.
Set this value to less than one to ensure that the fallback computation
based on density will return -1 if the absolute width is not known.
GraphicException
- Error occurred in parsing of Graphic file.public int absoluteHeight(int pixelsPerInch) throws GraphicException
pixelsPerInch
- The density factor that should be used if the
graphic does not know its absolute height, but does know its pixel
height.
Set this value to less than one to ensure that the fallback computation
based on density will return -1 if the absolute width is not known.
GraphicException
- Error occurred in parsing of Graphic file.public java.awt.color.ColorSpace getColorSpace() throws GraphicException
GraphicException
- Error occurred in parsing of Graphic file.public int getBitsPerPixel() throws GraphicException
GraphicException
- Error occurred in parsing of Graphic file.public boolean isTransparent() throws GraphicException
GraphicException
- Error occurred in parsing of Graphic file.public java.awt.Color getTransparentColor() throws GraphicException
GraphicException
- Error occurred in parsing of Graphic file.public byte[] getContent() throws GraphicException
GraphicException
- Error occurred in parsing of Graphic file.public int getContentSize() throws GraphicException
GraphicException
- Error occurred in parsing of Graphic file.public void close()
public int getGraphicType()
TYPE_UNKNOWN
, TYPE_TIFF
, TYPE_SVG
,
TYPE_JPEG
, TYPE_GIF
, TYPE_EPS
,
TYPE_BMP
.public int getCompressionType() throws GraphicException
COMPRESSION_UNKNOWN
, COMPRESSION_DCT
,
COMPRESSION_CCITT_FAX
.
GraphicException
- If an error occurs attempting to find the
compression scheme.public java.lang.String getMimeType()
public java.lang.String getName()
|
aXSL API 0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation was created September 6 2006 by The aXSL Group and may be freely copied. See license for details.