SKBitmapImageSource Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |