PDFsharp-net6

XBitmapEncoder

Namespace: PdfSharp.Drawing

Provides functionality to save a bitmap image in a specific format.

public abstract class XBitmapEncoder

Inheritance ObjectXBitmapEncoder

Properties

Source

Gets or sets the bitmap source to be encoded.

public XBitmapSource Source { get; set; }

Property Value

XBitmapSource

Methods

GetPngEncoder()

Gets a new instance of the PNG image encoder.

public static XBitmapEncoder GetPngEncoder()

Returns

XBitmapEncoder

Save(Stream)

When overridden in a derived class saves the image on the specified stream in the respective format.

public abstract void Save(Stream stream)

Parameters

stream Stream