PDFsharp-net6

XBitmapImage

Namespace: PdfSharp.Drawing

Defines a pixel-based bitmap image.

public sealed class XBitmapImage : XBitmapSource, System.IDisposable

Inheritance ObjectXImageXBitmapSourceXBitmapImage
Implements IDisposable

Properties

PixelWidth

Gets the width of the image in pixels.

public int PixelWidth { get; }

Property Value

Int32

PixelHeight

Gets the height of the image in pixels.

public int PixelHeight { get; }

Property Value

Int32

Width

Caution

Use either PixelWidth or PointWidth. Temporarily obsolete because of rearrangements for WPF. Currently same as PixelWidth, but will become PointWidth in future releases of PDFsharp.


Gets the width of the image.

public double Width { get; }

Property Value

Double

Height

Caution

Use either PixelHeight or PointHeight. Temporarily obsolete because of rearrangements for WPF. Currently same as PixelHeight, but will become PointHeight in future releases of PDFsharp.


Gets the height of the image.

public double Height { get; }

Property Value

Double

PointWidth

Gets the width of the image in point.

public double PointWidth { get; }

Property Value

Double

PointHeight

Gets the height of the image in point.

public double PointHeight { get; }

Property Value

Double

Size

Gets the size in point of the image.

public XSize Size { get; }

Property Value

XSize

HorizontalResolution

Gets the horizontal resolution of the image.

public double HorizontalResolution { get; }

Property Value

Double

VerticalResolution

Gets the vertical resolution of the image.

public double VerticalResolution { get; }

Property Value

Double

Interpolate

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

public bool Interpolate { get; set; }

Property Value

Boolean

Format

Gets the format of the image.

public XImageFormat Format { get; }

Property Value

XImageFormat

Methods

CreateBitmap(Int32, Int32)

Creates a default 24-bit ARGB bitmap with the specified pixel size.

public static XBitmapSource CreateBitmap(int width, int height)

Parameters

width Int32

height Int32

Returns

XBitmapSource