Edit

SKBitmapImageSource Class

Definition

An image source that wraps an SKBitmap for use with .NET MAUI image controls.

public sealed class SKBitmapImageSource : Microsoft.Maui.Controls.ImageSource, Microsoft.Maui.IImageSource, SkiaSharp.Views.Maui.ISKBitmapImageSource
Inheritance
SKBitmapImageSource
Implements

Remarks

Use this class to display SkiaSharp bitmaps in MAUI Image controls. Implicit conversions are provided for convenience.

Constructors

Name Description
SKBitmapImageSource()

Initializes a new instance of the SKBitmapImageSource class.

Fields

Name Description
BitmapProperty

Identifies the Bitmap bindable property.

Properties

Name Description
Bitmap

Gets or sets the underlying SKBitmap.

Methods

Name Description
Cancel()

Cancels any pending image loading operation.

Operators

Name Description
Implicit(SKBitmap to SKBitmapImageSource)

Implicitly converts an SKBitmap to an SKBitmapImageSource.

Implicit(SKBitmapImageSource to SKBitmap)

Implicitly converts an SKBitmapImageSource to an SKBitmap.

Applies to