Table of Contents

Method TryGetImage

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

TryGetImage<T>(int, KnownSvgColor, bool, ref object?)

Tries to get svg image as image with pixel data.

public virtual bool TryGetImage<T>(int size, KnownSvgColor knownColor, bool isDark, ref object? result)

Parameters

size int

Image size in pixels.

knownColor KnownSvgColor

Known svg color.

isDark bool

Whether color theme is dark.

result object

Image with pixel data.

Returns

bool

Type Parameters

T

Type of the image. Supported types: ImageSet, Image