Share via


BitmapExportContext Class

Definition

Provides an abstract base class for bitmap export operations.

public ref class BitmapExportContext abstract : IDisposable
public abstract class BitmapExportContext : IDisposable
type BitmapExportContext = class
    interface IDisposable
Public MustInherit Class BitmapExportContext
Implements IDisposable
Inheritance
BitmapExportContext
Derived
Implements

Remarks

This class encapsulates the context for exporting graphics to a bitmap. Platform-specific implementations will handle the actual drawing and image generation.

Constructors

BitmapExportContext(Int32, Int32, Single)

Initializes a new instance of the BitmapExportContext class with the specified dimensions and resolution.

Properties

Canvas
Dpi

Gets the resolution (dots per inch) of the bitmap.

Height

Gets the height of the bitmap in pixels.

Image
Width

Gets the width of the bitmap in pixels.

Methods

Dispose()

Releases all resources used by the BitmapExportContext.

WriteToStream(Stream)

Extension Methods

WriteToFile(BitmapExportContext, String)

Writes the bitmap data from the export context to a file.

Applies to