PdfSharp-GDI  1.31.7289
PdfSharp.Drawing.XImage Class Reference

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. More...

Inheritance diagram for PdfSharp.Drawing.XImage:
PdfSharp.Drawing.XForm PdfSharp.Drawing.XPdfForm

Public Member Functions

void Dispose ()
 Under construction More...
 

Static Public Member Functions

static XImage FromGdiPlusImage (Image image)
 Conversion from Image to XImage. More...
 
static XImage FromFile (string path)
 Creates an image from the specified file. More...
 
static bool ExistsFile (string path)
 Tests if a file exist. Supports PDF files with page number suffix. More...
 

Protected Member Functions

 XImage ()
 Initializes a new instance of the XImage class. More...
 
virtual void Dispose (bool disposing)
 Disposes underlying GDI+ object. More...
 

Properties

virtual double Width [get]
 Gets the width of the image. More...
 
virtual double Height [get]
 Gets the height of the image. More...
 
virtual double PointWidth [get]
 Gets the width of the image in point. More...
 
virtual double PointHeight [get]
 Gets the height of the image in point. More...
 
virtual int PixelWidth [get]
 Gets the width of the image in pixels. More...
 
virtual int PixelHeight [get]
 Gets the height of the image in pixels. More...
 
virtual XSize Size [get]
 Gets the size in point of the image. More...
 
virtual double HorizontalResolution [get]
 Gets the horizontal resolution of the image. More...
 
virtual double VerticalResolution [get]
 Gets the vertical resolution of the image. More...
 
virtual bool Interpolate [get, set]
 Gets or sets a flag indicating whether image interpolation is to be performed. More...
 
XImageFormat Format [get]
 Gets the format of the image. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ XImage()

PdfSharp.Drawing.XImage.XImage ( )
protected

Initializes a new instance of the XImage class.

Member Function Documentation

◆ Dispose() [1/2]

void PdfSharp.Drawing.XImage.Dispose ( )

Under construction

◆ Dispose() [2/2]

virtual void PdfSharp.Drawing.XImage.Dispose ( bool  disposing)
protectedvirtual

Disposes underlying GDI+ object.

Reimplemented in PdfSharp.Drawing.XPdfForm, and PdfSharp.Drawing.XForm.

◆ ExistsFile()

static bool PdfSharp.Drawing.XImage.ExistsFile ( string  path)
static

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

Parameters
pathThe path to a BMP, PNG, GIF, JPEG, TIFF, or PDF file.

◆ FromFile()

static XImage PdfSharp.Drawing.XImage.FromFile ( string  path)
static

Creates an image from the specified file.

Parameters
pathThe path to a BMP, PNG, GIF, JPEG, TIFF, or PDF file.

◆ FromGdiPlusImage()

static XImage PdfSharp.Drawing.XImage.FromGdiPlusImage ( Image  image)
static

Conversion from Image to XImage.

Property Documentation

◆ Format

XImageFormat PdfSharp.Drawing.XImage.Format
get

Gets the format of the image.

◆ Height

virtual double PdfSharp.Drawing.XImage.Height
get

Gets the height of the image.

◆ HorizontalResolution

virtual double PdfSharp.Drawing.XImage.HorizontalResolution
get

Gets the horizontal resolution of the image.

◆ Interpolate

virtual bool PdfSharp.Drawing.XImage.Interpolate
getset

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

◆ PixelHeight

virtual int PdfSharp.Drawing.XImage.PixelHeight
get

Gets the height of the image in pixels.

◆ PixelWidth

virtual int PdfSharp.Drawing.XImage.PixelWidth
get

Gets the width of the image in pixels.

◆ PointHeight

virtual double PdfSharp.Drawing.XImage.PointHeight
get

Gets the height of the image in point.

◆ PointWidth

virtual double PdfSharp.Drawing.XImage.PointWidth
get

Gets the width of the image in point.

◆ Size

virtual XSize PdfSharp.Drawing.XImage.Size
get

Gets the size in point of the image.

◆ VerticalResolution

virtual double PdfSharp.Drawing.XImage.VerticalResolution
get

Gets the vertical resolution of the image.

◆ Width

virtual double PdfSharp.Drawing.XImage.Width
get

Gets the width of the image.


The documentation for this class was generated from the following file: