Skip to content

SkiaBitmap class

Defined in

Namespace: Splat.SkiaSharp Assembly: Splat.SkiaSharp.dll Full name: Splat.SkiaSharp.SkiaBitmap Modifiers: public sealed

Summary

View source

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

NameSummary
.ctorInitializes a new instance of the [SkiaBitmap](# class.

Properties

NameSummary
WidthGets the width in pixel units (depending on platform).
HeightGets the height in pixel units (depending on platform).
EncodedOriginGets the orientation the source image recorded, which the loader has already applied to the pixels.
InnerGets the Skia bitmap backing this instance, or null once it has been disposed.

Methods

NameSummary
SaveSaves an image to a target stream.
Dispose
Inherited members