ImageCollection Class Documentation

class ImageCollection

Namespace:com::datalogics::PDFL

Detailed Description

An image collection can hold multiple images, created from an image file. The full set of images in the collection can be saved to a single image file, but only as a .tif image file. For any other file type (JPG, PNG, and so on), the collection can only be saved as one image object per file.

Referenced by

Constructor & Destructor Documentation

ImageCollection

ImageCollection(StreamFile sf, boolean ignore)

Parameters

sf: StreamFile
ignore: boolean

ImageCollection

ImageCollection()

Create an empty image collection, which can have Image objects added to it.

ImageCollection

ImageCollection(Image image)

Parameters

image: Image

the Image object to be inserted upon creation.

Create a new image collection containing the supplied Image object.

ImageCollection

ImageCollection(javax.imageio.stream.ImageInputStream stream)

Parameters

stream: javax.imageio.stream.ImageInputStream

Allows to create ImageCollection object from ImageInputStream.

The Stream must contain image data in the TIFF Format.

ImageCollection

ImageCollection(String fileName)

Parameters

fileName: String

The physical image file from which an image collection will be created.

Create from an image file. If the file is a TIFF, then an Image object will be created for each "page" of the TIFF. For all other types, only 1 Image object will be created.

ImageCollection

ImageCollection(String fileName, Document document)

Parameters

fileName: String

The physical image file from which an image collection will be created.

document: Document

the document in which the image is intended to be used.

Create from an image file. If the file is a TIFF, then an Image object will be created for each "page" of the TIFF.

For all other types, only 1 Image object will be created.

Specifying the document optimizes data usage for this image within that document.

Member Function Documentation

append

void append(Image image)

Parameters

image: Image

the Image object to be inserted.

Returns:

void

Insert the given Image object at the end of the ImageCollection.

delete

synchronized void delete(Boolean disposing)

Parameters

disposing: Boolean

Returns:

synchronized void

delete

synchronized void delete()

Returns:

synchronized void

finalize

void finalize()

Returns:

void

getCount

int getCount()

Returns:

int

The count of Image objects in the collection.

Gets the number of Image objects in this collection.

getImage

Image getImage(int index)

Parameters

index: int

the index of the Image to be retrieved.

Returns:

Image

the Image object at the specified index.

Retrieve the Image object at the specified index. Note that an exception will be generated if an index is given which is out of range.

save

void save(String filename, ImageType type)

Parameters

filename: String

the file which to save the image.

type: ImageType

the image type to which to be saved. NOTE: The resolution of the first Image in the collection is used as the target Resolution for saving. (Support for saving multiple, different resolutions isn't available)

Returns:

void

Save the images in the collection to the specified file and image type. Multiple images can only be save to an image type of TIFF, otherwise an exception will be thrown.

save

void save(String filename, ImageType type, ImageSaveParams saveparams)

Parameters

filename: String

the file which to save the image.

type: ImageType

the image type to which to be saved.

saveparams: ImageSaveParams

the ImageSaveParams parameters for customizing the image saving. NOTE: The resolution of the first Image in the collection is used as the target Resolution for saving. (Support for saving multiple, different resolutions isn't available)

Returns:

void

Save the images in the collection to the specified file and image type. Multiple images can only be save to an image type of TIFF, otherwise an exception will be thrown.