SkiaBitmap class¶
Defined in
Namespace: Splat.SkiaSharp
Assembly: Splat.SkiaSharp.dll
Full name: Splat.SkiaSharp.SkiaBitmap
Modifiers: public sealed
Summary¶
An IBitmap whose pixels are held by Skia.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-tvos18.0, net9.0-maccatalyst18.0, net9.0-macos15.0, net9.0-desktop1.0, net9.0-ios18.0, net8.0, net8.0-maccatalyst17.5, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-macos14.5, netstandard2.1
Class hierarchy
classDiagram
class SkiaBitmap
class IBitmap {
<>
}
IBitmap <|.. SkiaBitmap
class IDisposable {
<>
}
IDisposable <|.. SkiaBitmap
Implements: IBitmap, IDisposable
Remarks¶
The instance owns the bitmap it is given and releases it on Dispose, so a caller that wants to keep drawing with the Skia bitmap afterwards has to hand over a copy.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [SkiaBitmap](# class. |
Properties¶
| Name | Summary |
|---|---|
| Width | Gets the width in pixel units (depending on platform). |
| Height | Gets the height in pixel units (depending on platform). |
| EncodedOrigin | Gets the orientation the source image recorded, which the loader has already applied to the pixels. |
| Inner | Gets the Skia bitmap backing this instance, or null once it has been disposed. |
Methods¶
| Name | Summary |
|---|---|
| Save | Saves an image to a target stream. |
| Dispose |