Skip to content

SkiaBitmapLoader class

Defined in

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

Summary

View source

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

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

Properties

NameSummary
SamplingGets the sampling this loader resizes with.

Methods

NameSummary
LoadLoads a bitmap from a byte stream.
LoadFromResourceLoads from the application's resources (i.e. from bundle on Cocoa, from Pack URIs on Windows, etc).
CreateCreates an empty bitmap of the specified dimensions.
Inherited members