Share via


SkiaBitmapExportContext Class

Definition

Provides a context for exporting bitmaps using SkiaSharp.

public ref class SkiaBitmapExportContext : Microsoft::Maui::Graphics::BitmapExportContext
public class SkiaBitmapExportContext : Microsoft.Maui.Graphics.BitmapExportContext
type SkiaBitmapExportContext = class
    inherit BitmapExportContext
Public Class SkiaBitmapExportContext
Inherits BitmapExportContext
Inheritance
SkiaBitmapExportContext

Constructors

SkiaBitmapExportContext(Int32, Int32, Single, Int32, Boolean, Boolean)

Initializes a new instance of the SkiaBitmapExportContext class with the specified dimensions and properties.

Properties

Bitmap

Gets the Skia bitmap representation of this context.

Canvas

Gets the canvas that can be used to draw on this bitmap.

Dpi

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

(Inherited from BitmapExportContext)
Height

Gets the height of the bitmap in pixels.

(Inherited from BitmapExportContext)
Image

Gets the resulting image after drawing operations have been performed.

SKImage

Gets the Skia image representation of this bitmap.

Width

Gets the width of the bitmap in pixels.

(Inherited from BitmapExportContext)

Methods

Dispose()

Releases all resources used by this bitmap export context.

WriteToStream(Stream)

Writes the bitmap to the specified stream in PNG format.

Extension Methods

WriteToFile(BitmapExportContext, String)

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

Applies to