Click or drag to resize
Ab4d.SharpEngine logo

SkiaSharpBitmapIO Class

SkiaSharpBitmapIO uses SkiaSharp to support bitmap IO operations.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.AvaloniaUISkiaSharpBitmapIO

Namespace: Ab4d.SharpEngine.AvaloniaUI
Assembly: Ab4d.SharpEngine.AvaloniaUI (in Ab4d.SharpEngine.AvaloniaUI.dll) Version: 4.0.9584+1b7ee6bb29044dc79cb258fb9be4150ffbca20f3
Syntax
C#
public class SkiaSharpBitmapIO : IBitmapIO

The SkiaSharpBitmapIO type exposes the following members.

Constructors
 NameDescription
Public methodSkiaSharpBitmapIOInitializes a new instance of the SkiaSharpBitmapIO class
Top
Properties
 NameDescription
Public propertyConvertToSupportedFormatObsolete
Public propertyFileNotFoundResolver Gets or sets a Func that takes file name of a file that does not exist and returns an existing file name. If file name is not resolved, then null is returned.
Public propertyFileStreamResolver Gets or sets a Func that takes file name of a file that does not exist and returns a stream to the file. The returned stream is closed after the bitmap is read. If file name is not resolved, then null is returned.
Top
Methods
 NameDescription
Public methodCreateSKBitmap CreateSKBitmap method takes the RawImageData and returns the Skia's SKBitmap.
Public methodStatic memberGetSkiaFormat GetSkiaFormat returns the Skia's SKColorType from the Vulkan's format
Public methodIsFileFormatExportSupported Returns true when exporting a bitmap to the specified file format that is defined by the fileExtension is supported.
Public methodIsFileFormatImportSupported Returns true when importing a bitmap from the specified file format that is defined by the fileExtension is supported.
Public methodIsStreamSupported Returns true when methods that take Stream as parameter are supported. When false, then only methods that take fileName are supported.
Public methodLoadBitmap(String, BitmapLoadOptions) Load bitmap into the RawImageData struct
Public methodLoadBitmap(Stream, String, BitmapLoadOptions) Load bitmap into the RawImageData struct
Public methodLoadSkBitmap LoadSkBitmap methods loads the file with the specified file name and returns a Skia's SKBitmap.
Public methodSaveBitmap(RawImageData, String) Save bitmap from the RawImageData to the specified file.
Public methodSaveBitmap(RawImageData, Stream, String) Save bitmap from the RawImageData to the specified fileStream.
Public methodSaveBitmap(RawImageData, Stream, SKEncodedImageFormat, Int32) Save bitmap from the RawImageData to the specified fileStream and by using special file format options that are defied by the fileFormat and quality parameters.
Public methodSaveBitmap(RawImageData, String, SKEncodedImageFormat, Int32) Save bitmap from the RawImageData to the specified file and by using special file format options that are defied by the fileFormat and quality parameters.
Top
See Also