|
aXSL API 0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Graphic
Interface for Graphics. Graphics, as used here, may include:
Nested Class Summary | |
---|---|
static class |
Graphic.Compression
Enumeration of compression schemes used in Graphic files. |
static class |
Graphic.Type
Enumeration of graphic formats. |
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()
Tells the server that the client application is done with this graphic, which gives the server an opportunity to release any resources devoted to this graphic. |
int |
getBitsPerComponent()
Return the number of uncompressed bits per component for this graphic. |
java.awt.color.ColorSpace |
getColorSpace()
Return the image color space: DeviceGray, DeviceRGB, or DeviceCMYK. |
Graphic.Compression |
getCompressionType()
Indicates the type of compression used in this graphic. |
byte[] |
getContent()
Return the uncompressed content of the graphic. |
int |
getContentSize()
Return the graphic content size, in bytes (uncompressed). |
Graphic.Type |
getGraphicType()
Indicates the type of this graphic. |
GraphicLink[] |
getLinks()
Returns any links embedded in the graphic. |
java.lang.String |
getMimeType()
Return corresponding mime type. |
java.lang.String |
getName()
Return the name of the Graphic. |
byte[] |
getRawSamples()
Return the raw content of the sample portion of the graphic. |
java.awt.Color |
getTransparentColor()
Return the transparent color, if any. |
java.net.URL |
getUrl()
Return the image URL. |
boolean |
isInverted()
Indicates whether a graphic has its colors inverted. |
boolean |
isTransparent()
Indicates whether this image is transparent. |
int |
pixelHeight()
Return the image height, in pixels, if available. |
int |
pixelWidth()
Return the image width, in pixels, if available. |
Method Detail |
---|
boolean isInverted()
java.net.URL getUrl()
int pixelWidth() throws GraphicException
GraphicException
- For errors during parsing of the graphic
content.int pixelHeight() throws GraphicException
GraphicException
- For errors during parsing of the graphic
content.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
- For errors during parsing of the graphic
content.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
- For errors during parsing of the graphic
content.java.awt.color.ColorSpace getColorSpace() throws GraphicException
GraphicException
- For errors during parsing of the graphic
content.int getBitsPerComponent() throws GraphicException
GraphicException
- For errors during parsing of the graphic
content.boolean isTransparent() throws GraphicException
GraphicException
- For errors during parsing of the graphic
content.java.awt.Color getTransparentColor() throws GraphicException
GraphicException
- For errors during parsing of the graphic
content.byte[] getRawSamples() throws GraphicException
getContent()
, and then needing to recompress it
after getting the uncompressed image.
GraphicException
- For errors during parsing of the graphic
content.byte[] getContent() throws GraphicException
getColorSpace()
and the getBitsPerComponent()
indicate the number of channels, order of the channels, and number of
bits that are used to describe each image sample.
GraphicException
- For errors during parsing of the graphic
content.int getContentSize() throws GraphicException
GraphicException
- For errors during parsing of the graphic
content.void close()
Graphic.Type getGraphicType()
Graphic.Compression getCompressionType() throws GraphicException
GraphicException
- If an error occurs attempting to find the
compression scheme.java.lang.String getMimeType()
java.lang.String getName()
GraphicLink[] getLinks()
|
aXSL API 0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.