Table of Contents

Class LoadedImageSource

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public class LoadedImageSource : IDisposable
Inheritance
LoadedImageSource
Implements
Inherited Members
Extension Methods

Constructors

LoadedImageSource()

public LoadedImageSource()

LoadedImageSource(SKBitmap)

public LoadedImageSource(SKBitmap bitmap)

Parameters

bitmap SKBitmap

LoadedImageSource(SKImage)

public LoadedImageSource(SKImage image)

Parameters

image SKImage

LoadedImageSource(byte[])

public LoadedImageSource(byte[] bytes)

Parameters

bytes byte[]

Properties

Bitmap

public SKBitmap Bitmap { get; set; }

Property Value

SKBitmap

Height

public int Height { get; }

Property Value

int

Id

public Guid Id { get; }

Property Value

Guid

Image

public SKImage Image { get; set; }

Property Value

SKImage

IsDisposed

public bool IsDisposed { get; protected set; }

Property Value

bool

ProtectBitmapFromDispose

Should be set to true for loaded with SkiaImageManager.ReuseBitmaps

public bool ProtectBitmapFromDispose { get; set; }

Property Value

bool

ProtectFromDispose

As this can be disposed automatically by the consuming control like SkiaImage etc we can manually prohibit this for cases this instance is used elsewhere.

public bool ProtectFromDispose { get; set; }

Property Value

bool

Width

public int Width { get; }

Property Value

int

Methods

Clone()

public LoadedImageSource Clone()

Returns

LoadedImageSource

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetBitmap()

public SKBitmap GetBitmap()

Returns

SKBitmap