Table of Contents

Class SvgUtils

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

Contains static methods related to svg images handling.

public static class SvgUtils
Inheritance
SvgUtils

Fields

GetSvgSizeOverride

Gets or sets a function that overrides the default calculation of SVG size.

Methods

GetNormalAndDisabledSvg(Stream, SizeI, AbstractControl)

Initializes a tuple with two instances of the ImageSet class from the specified Stream which contains svg data. Images are loaded for the normal and disabled states using GetSvgColor(KnownSvgColor).

GetSvgSize(float, int, object?)

Calculates the size of an SVG element based on a scaling factor and a base size.