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, net9.0, net8.0
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 | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |