public class Image extends NativeObject
| Modifier and Type | Method and Description |
|---|---|
static Image |
create(Document targetDocument,
Stream stream)
Create an image object from image data.
|
static Image |
createDynamicObject(long handle) |
int |
getBitsPerComponent()
the number of bits per component.
|
ColorSpace |
getColorSpace()
the color space in which image samples are specified.
|
Size |
getSize()
The size of the image in samples.
|
equals, hashCodepublic static Image createDynamicObject(long handle)
public static Image create(Document targetDocument, Stream stream) throws java.io.IOException, UnknownFormatException, CorruptException
targetDocument - the output document with which the returned object is associatedstream - the image data streamjava.io.IOException - Error reading from the image or writing to the documentUnknownFormatException - The image data has an unknown formatCorruptException - The image data is corruptjava.lang.IllegalArgumentException - if the targetDocument argument is nulljava.lang.IllegalArgumentException - if the targetDocument argument has already been closedjava.lang.IllegalArgumentException - if the targetDocument argument is read-onlyjava.lang.IllegalArgumentException - if the stream argument is nullpublic Size getSize()
java.lang.IllegalStateException - if the image has already been closedpublic int getBitsPerComponent()
java.lang.IllegalStateException - if the image has already been closedpublic ColorSpace getColorSpace()
java.lang.IllegalStateException - if the image has already been closed