XImage Class
Class representing image X-Object.
Inheritance Hierarchy

Namespace: Aspose.Pdf
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.11
public sealed class XImage

The XImage type exposes the following members.

Public propertyContainsTransparency
If the image contains transparancy than return true; otherwise, false.
Public propertyFilterType
Gets image filter type.
Public propertyGrayscaled
Gets grayscaled version of image.
Public propertyHeight
Gets height of the image.
Public propertyName
Gets or sets image name. Please note that if you change name of the image which has references in page contents, document may became incorrect. Please use XImage.Rename method in this case.
Public propertyWidth
Gets width of the image.
Public methodEquals (Inherited from Object.)
Public methodGetColorType
Returns color type of image.
Public methodGetHashCode (Inherited from Object.)
Public methodGetNameInCollection
Returns name of the image in ints collection.
Public methodGetType (Inherited from Object.)
Public methodIsTheSameObject
Returns true if both images references to the same object.
Public methodRename
Renames image and replaces all references to the image with the new name
Public methodSave(Stream)
Saves image data into stream as JPEG image.
Public methodSave(Stream, ImageFormat)
Saves image into stream with requested format.
Public methodSave(Stream, Int32)
Saves image data into stream as JPEG image with specified resolution.
Public methodSave(Stream, ImageFormat, Int32)
Saves image into stream with requested format with specified resolution.
Public methodToStream
Returns the original image stream.
Public methodToString (Inherited from Object.)
See Also