XImageCollection.Add
Contents
[
Hide
]Add(XImage)
Adds new image to Image list. This method adds image as reference to the same PdfObject (which allows to decrease file size)
public string Add(XImage image)
Parameter | Type | Description |
---|---|---|
image | XImage | XImage to be added. |
Return Value
Name of the added image.
See Also
- class XImage
- class XImageCollection
- namespace Aspose.Pdf
- assembly Aspose.PDF
Add(Stream)
Adds entity to the end of the collection, so entity can be accessed by the last index.
public string Add(Stream image)
Parameter | Type | Description |
---|---|---|
image | Stream | Stream containing image data (in JPEG format). |
Return Value
Name of the added image.
See Also
- class XImageCollection
- namespace Aspose.Pdf
- assembly Aspose.PDF
Add(Stream, ImageFilterType)
Adds entity to the end of the collection, so entity can be accessed by the last index.
public string Add(Stream image, ImageFilterType filterType)
Parameter | Type | Description |
---|---|---|
image | Stream | Stream containing image data. |
filterType | ImageFilterType | The image filter type. |
Return Value
Name of the added image.
See Also
- enum ImageFilterType
- class XImageCollection
- namespace Aspose.Pdf
- assembly Aspose.PDF
Add(Stream, int)
Adds entity to the end of the collection, so entity can be accessed by the last index.
public void Add(Stream image, int quality)
Parameter | Type | Description |
---|---|---|
image | Stream | Stream containing image data (in JPEG format). |
quality | Int32 | JPEG quality. |
See Also
- class XImageCollection
- namespace Aspose.Pdf
- assembly Aspose.PDF