XImageCollection

Inheritance: java.lang.Object, com.aspose.pdf.XImageCollection

All Implemented Interfaces: Iterable < XImage >

public final class XImageCollection extends Object implements Iterable < XImage >

Class representing XImage collection.

Methods

MethodDescription
addAdds entity to the end of the collection, so entity can be accessed by the last index.
addAdds entity to the end of the collection, so entity can be accessed by the last index.
addAdds entity to the end of the collection, so entity can be accessed by the last index.
addAdds entity to the end of the collection, so entity can be accessed by the last index.
addAdds entity to the end of the collection, so entity can be accessed by the last index.
addAdds entity to the end of the collection, so entity can be accessed by the last index.
addAdds entity to the end of the collection, so entity can be accessed by the last index.
addAdds new image to Image list. This method adds image as reference to the same PdfObject (which allows to decrease file size)
add
addWithImageFilterTypeAdds entity to the end of the collection, so entity can be accessed by the last index.
clearClears all items from the collection.
containsDetermines whether the collection contains a specific value.
copyToCopies array of images into collection.
deleteDeletes images from collection.
deleteRemoves index from collection by index.
deleteRemoves index from collection by index performing action specified by action parameter.
deleteDeletes images from collection.
deleteDeletes images from collection.
get_ItemGets image from collection by its index.
get_ItemGets image from collection by its name.
getImageNameReturns name in images list which is key of the given image.
getNamesGets array of image names.
getSyncRootReturns synchronization object.
hasImage
isReadOnlyGets a value indicating whether the collection is read-only.
isSynchronizedReturns true if object is synchronized.
iteratorReturns collection enumerator.
removeNot supported yet, throws exception. Always throws NotImplementedException
replaceReplace image in collection with another image.
replaceReplace image in collection with another image.
replaceReplace image in collection with another image.
saveJpxWithQuality
sizeCount of images in collection.

add

Adds entity to the end of the collection, so entity can be accessed by the last index.

add

Adds entity to the end of the collection, so entity can be accessed by the last index.

add

Adds entity to the end of the collection, so entity can be accessed by the last index.

add

Adds entity to the end of the collection, so entity can be accessed by the last index.

add

Adds entity to the end of the collection, so entity can be accessed by the last index.

add

Adds entity to the end of the collection, so entity can be accessed by the last index.

add

Adds entity to the end of the collection, so entity can be accessed by the last index.

add

Adds new image to Image list. This method adds image as reference to the same PdfObject (which allows to decrease file size)

add

addWithImageFilterType

Adds entity to the end of the collection, so entity can be accessed by the last index.

clear

public void clear()

Clears all items from the collection.

contains

Determines whether the collection contains a specific value.

copyTo

Copies array of images into collection.

delete

public void delete()

Deletes images from collection.

delete

public void delete(int index)

Removes index from collection by index.

Parameters:

ParameterTypeDescription
indexImage index.

delete

public final void delete(int index, int action)

Removes index from collection by index performing action specified by action parameter.

Parameters:

ParameterTypeDescription
indexIndex of the image to be removed.
actionImageDeleteAction element. Action performed after image deleting.

delete

Deletes images from collection.

delete

Deletes images from collection.

get_Item

public XImage get_Item(int index)

Gets image from collection by its index.

Parameters:

ParameterTypeDescription
indexImage index

Returns: Retrieved image.

get_Item

Gets image from collection by its name.

getImageName

Returns name in images list which is key of the given image.

getNames

public String [] getNames()

Gets array of image names.

Returns: String[] array

getSyncRoot

public Object getSyncRoot()

Returns synchronization object.

Returns: Object element

hasImage

isReadOnly

public boolean isReadOnly()

Gets a value indicating whether the collection is read-only.

Returns: boolean value

isSynchronized

public boolean isSynchronized()

Returns true if object is synchronized.

Returns: boolean value

iterator

public Iterator < XImage > iterator()

Returns collection enumerator.

Returns: Enumerator of collection

remove

Not supported yet, throws exception. Always throws NotImplementedException

replace

Replace image in collection with another image.

replace

Replace image in collection with another image.

replace

Replace image in collection with another image.

saveJpxWithQuality

size

public int size()

Count of images in collection.

Returns: int value