ImageCollection Class Documentation
classImageCollection : SystemIDisposableNamespace:Datalogics::PDFL
- Inherits from:
SystemIDisposable
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(CDotNetStreamFilefile)Parameters
file: CDotNetStreamFile
ImageCollection
ImageCollection(CDotNetStreamFilefile, Documentdocument)Parameters
file: CDotNetStreamFiledocument: Document
ImageCollection
ImageCollection(ImageCollectionrhs, InternalConstructsignifier)Parameters
rhs: ImageCollectionsignifier: InternalConstruct
ImageCollection
ImageCollection(StreamFilesf, boolignore)Parameters
sf: StreamFileignore: bool
ImageCollection
ImageCollection(StreamFilesf, Documentdocument, boolignore)Parameters
sf: StreamFiledocument: Documentignore: bool
ImageCollection
ImageCollection()Create an empty image collection, which can have Image objects added to it.
ImageCollection
ImageCollection(Imageimage)Parameters
image: Imagethe Image object to be inserted upon creation.
Create a new image collection containing the supplied Image object.
ImageCollection
ImageCollection(stringfileName)Parameters
fileName: stringThe 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(stringfileName, Documentdocument)Parameters
fileName: stringThe physical image file from which an image collection will be created.
document: Documentthe 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.
ImageCollection
ImageCollection(System.IO.Streamstream)Parameters
stream: System.IO.StreamThe Stream from which to read the ImageCollection.
Create an ImageCollection from a Stream.
This allows an ImageCollection to be read from a Stream object. The Stream must be seekable. Suitable examples are FileStream and MemoryStream. The Stream must contain image data in the TIFF Format.
ImageCollection
ImageCollection(System.IO.Streamstream, Documentdocument)Parameters
stream: System.IO.StreamThe Stream from which to read the ImageCollection.
document: DocumentThe Document in which the ImageCollection is intended to be used.
Create an ImageCollection from a Stream.
This allows an ImageCollection to be read from a Stream object. The Stream must be seekable. Suitable examples are FileStream and MemoryStream. The Stream must contain image data in the TIFF format.
~ImageCollection
~ImageCollection()Property Documentation
Count
intCount[get]Member Function Documentation
Append
voidAppend(Imageimage)Parameters
image: Imagethe Image object to be inserted.
Returns:
voidInsert the given Image object at the end of the ImageCollection.
ConstructorRetrieve
static ImageCollectionConstructorRetrieve(System.IntPtrignored)Parameters
ignored: System.IntPtr
Returns:
ImageCollectionDispose
voidDispose()Returns:
voidDisposeChildren
voidDisposeChildren()Returns:
voidGetImage
ImageGetImage(intindex)Parameters
index: intthe index of the Image to be retrieved.
Returns:
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
voidSave(stringfilename, ImageTypetype)Parameters
filename: stringthe file which to save the image.
type: ImageTypethe 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:
voidSave 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
voidSave(stringfilename, ImageTypetype, ImageSaveParamssaveparams)Parameters
filename: stringthe file which to save the image.
type: ImageTypethe image type to which to be saved.
saveparams: ImageSaveParamsthe 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:
voidSave 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.