public class ImageCollection
extends java.lang.Object
| Constructor and Description |
|---|
ImageCollection()
Create an empty image collection, which can have Image objects added to it.
|
ImageCollection(Image image)
Create a new image collection containing the supplied Image object.
|
ImageCollection(javax.imageio.stream.ImageInputStream stream)
Allows to create ImageCollection object from ImageInputStream.
|
ImageCollection(java.lang.String fileName)
Create from an image file.
|
ImageCollection(java.lang.String fileName,
Document document)
Create from an image file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(Image image)
Insert the given Image object at the end of the ImageCollection.
|
void |
delete() |
int |
getCount() |
Image |
getImage(int index)
Retrieve the Image object at the specified index.
|
void |
save(java.lang.String filename,
ImageType type)
Save the images in the collection to the specified file and image type.
|
void |
save(java.lang.String filename,
ImageType type,
ImageSaveParams saveparams)
Save the images in the collection to the specified file and image type.
|
public ImageCollection(javax.imageio.stream.ImageInputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic ImageCollection()
public ImageCollection(java.lang.String fileName)
fileName - The physical image file from which an image collection will be created.public ImageCollection(java.lang.String fileName,
Document document)
For all other types, only 1 Image object will be created.
Specifying the document optimizes data usage for this image within that document.
fileName - The physical image file from which an image collection will be created.document - the document in which the image is intended to be used.public ImageCollection(Image image)
image - the Image object to be inserted upon creation.public void delete()
public int getCount()
public Image getImage(int index)
index - the index of the Image to be retrieved.public void append(Image image)
image - the Image object to be inserted.public void save(java.lang.String filename,
ImageType type)
filename - the file which to save the image.type - the image type to which to be saved.public void save(java.lang.String filename,
ImageType type,
ImageSaveParams saveparams)
filename - the file which to save the image.type - the image type to which to be saved.saveparams - the ImageSaveParams parameters for customizing the image saving.