Table of Contents

Class XImage

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

Defines an object used to draw image files (bmp, png, jpeg, gif) and PDF forms. An abstract base class that provides functionality for the Bitmap and Metafile descended classes.

public class XImage
Inheritance
object
XImage
Derived

Constructors

XImage()

Initializes a new instance of the XImage class.

Properties

Format

Gets the format of the image.

Height

Gets the height of the image.

HorizontalResolution

Gets the horizontal resolution of the image.

Interpolate

Gets or sets a flag indicating whether image interpolation is to be performed.

PixelHeight

Gets the height of the image in pixels.

PixelWidth

Gets the width of the image in pixels.

PointHeight

Gets the height of the image in point.

PointWidth

Gets the width of the image in point.

Size

Gets the size in point of the image.

VerticalResolution

Gets the vertical resolution of the image.

Width

Gets the width of the image.

Methods

Dispose()

Under construction

Dispose(bool)

Disposes underlying GDI+ object.

ExistsFile(string)

Tests if a file exist. Supports PDF files with page number suffix.

FromBitmapImageStreamThatCannotSeek(Stream)

Creates an image from the specified stream.

FromFile(string)

Creates an image from the specified file.

FromStream(Stream)

Creates an image from the specified stream.