SkiaBitmapLoader class¶
Defined in
Namespace: Splat.SkiaSharp
Assembly: Splat.SkiaSharp.dll
Full name: Splat.SkiaSharp.SkiaBitmapLoader
Modifiers: public sealed
Summary¶
An IBitmapLoader that decodes and encodes through 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 SkiaBitmapLoader
class IBitmapLoader {
<>
}
IBitmapLoader <|.. SkiaBitmapLoader
Implements: IBitmapLoader
Remarks¶
The plain .NET target frameworks have no imaging stack of their own, so this is the loader for
server, console, container and Linux hosts. It reads whatever the native library was built with
- PNG, JPEG, WebP and GIF everywhere, and more besides on some platforms.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [SkiaBitmapLoader](# class. |
Properties¶
| Name | Summary |
|---|---|
| Sampling | Gets the sampling this loader resizes with. |
Methods¶
| Name | Summary |
|---|---|
| Load | Loads a bitmap from a byte stream. |
| LoadFromResource | Loads from the application's resources (i.e. from bundle on Cocoa, from Pack URIs on Windows, etc). |
| Create | Creates an empty bitmap of the specified dimensions. |