Modifier and Type | Method and Description |
---|---|
String |
add(BufferedImage image)
Adds entity to the end of the collection, so entity can be accessed by the last index.
|
String |
add(InputStream image)
Adds entity to the end of the collection, so entity can be accessed by the last index.
|
String |
add(InputStream image,
int quality)
Adds entity to the end of the collection, so entity can be accessed by the last index.
|
String |
add(XImage image)
Adds new image to Image list.
|
String |
addWithImageFilterType(InputStream image,
int filterType)
Adds entity to the end of the collection, so entity can be accessed by the last index.
|
void |
clear()
Clears all items from the collection.
|
boolean |
contains(XImage item)
Determines whether the collection contains a specific value.
|
void |
copyTo(XImage[] array,
int index)
Copies array of images into collection.
|
void |
delete()
Deletes images from collection.
|
void |
delete(int index)
Removes index from collection by index.
|
void |
delete(int index,
int action)
Removes index from collection by index.
|
void |
delete(String name)
Removes item from collection by name.
|
void |
delete(String name,
int action)
Removes item from collection by name.
|
XImage |
get_Item(int index)
Gets image from collection by its index.
|
XImage |
get_Item(String name)
Gets image from collection by its name.
|
String |
getImageName(XImage image)
Returns name in images list which is key of the given image.
|
String[] |
getNames()
Gets array of image names.
|
Object |
getSyncRoot()
Returns synchronization object.
|
boolean |
hasImage(String imgName) |
boolean |
isReadOnly()
Gets a value indicating whether the collection is read-only.
|
boolean |
isSynchronized()
Returns true if object is synchronized.
|
Iterator<XImage> |
iterator()
Returns collection enumerator.
|
boolean |
remove(XImage item)
Not supported yet.
|
void |
replace(int index,
InputStream stream)
Replace image in collection with another image.
|
void |
replace(int index,
InputStream stream,
int quality)
Replace image in collection with another image.
|
int |
size()
Count of images in collection.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public int size()
Count of images in collection.
public boolean isSynchronized()
Returns true if object is synchronized.
public Object getSyncRoot()
Returns synchronization object.
public String[] getNames()
Gets array of image names.
public boolean isReadOnly()
Gets a value indicating whether the collection is read-only.
public String add(XImage image)
Adds new image to Image list. This method adds image as reference to the same PdfObject (which allows to decrease file size)
image
- XImage to be added.public String add(InputStream image)
Adds entity to the end of the collection, so entity can be accessed by the last index.
image
- Stream containing image data (in JPEG format).public String add(BufferedImage image)
Adds entity to the end of the collection, so entity can be accessed by the last index.
image
- BufferedImage containing image data.public String addWithImageFilterType(InputStream image, int filterType)
Adds entity to the end of the collection, so entity can be accessed by the last index.
image
- Stream containing image data.filterType
- The image filter type.ImageFilterType
public String add(InputStream image, int quality)
Adds entity to the end of the collection, so entity can be accessed by the last index.
image
- Stream containing image data (in JPEG format).quality
- JPEG quality.public void delete(int index)
Removes index from collection by index.
index
- Image index.public final void delete(int index, int action)
Removes index from collection by index.
index
- Image index.action
- ImageDeleteAction element.public void delete(String name)
Removes item from collection by name.
name
- Name of image which must to be deleted.public final void delete(String name, int action)
Removes item from collection by name.
name
- Name of image which must to be deleted.action
- Action to be performed with image object.public void delete()
Deletes images from collection.
public void copyTo(XImage[] array, int index)
Copies array of images into collection.
array
- Array to be copied.index
- Index where images will be copied into collection.public void replace(int index, InputStream stream)
Replace image in collection with another image.
index
- Index of collection item which will be replaced.stream
- Stream containing image data (in JPEG format).public void replace(int index, InputStream stream, int quality)
Replace image in collection with another image.
index
- Index of collection item which will be replaced.stream
- Stream containing image data (in JPEG format).quality
- JPEG quality.public XImage get_Item(int index)
Gets image from collection by its index.
index
- Image indexpublic XImage get_Item(String name)
Gets image from collection by its name.
name
- Image name.public boolean hasImage(String imgName)
public String getImageName(XImage image)
Returns name in images list which is key of the given image.
image
- Image to search.public void clear()
Clears all items from the collection.
public boolean contains(XImage item)
Determines whether the collection contains a specific value.
item
- The object to locate in the collectionpublic boolean remove(XImage item)
Always throws NotImplementedException
item
- XImage instance