Class XImage

XImage class

Class representing image X-Object.

public sealed class XImage


ContainsTransparency { get; }If the image contains transparancy than return true; otherwise, false.
FilterType { get; }Gets image filter type.
Grayscaled { get; }Gets grayscaled version of image.
Height { get; }Gets height of the image.
Metadata { get; }Metadata of the image.
Name { get; set; }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.
Width { get; }Gets width of the image.


AddStencilMask(Stream)Adds a stencil mask to the XImage.
GetColorType()Returns color type of image.
GetNameInCollection()Returns name of the image in ints collection.
IsTheSameObject(XImage)Returns true if both images references to the same object.
Rename(string)Renames image and replaces all references to the image with the new name
Save(Stream)Saves image data into stream as JPEG image.
Save(Stream, ImageFormat)Saves image into stream with requested format.
Save(Stream, int)Saves image data into stream as JPEG image with specified resolution.
Save(Stream, ImageFormat, int)Saves image into stream with requested format with specified resolution.
ToStream()Returns the original image stream.
static DetectColorType(Bitmap)

See Also