Table of Contents

Method GetSvgSize

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

GetSvgSize(float, int, object?)

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

public static int GetSvgSize(float scaleFactor, int baseSize = 16, object? context = null)

Parameters

scaleFactor float

The scaling factor to apply to the base size. Must be a valid float value.

baseSize int

The base size of the SVG element. Defaults to 16 if not specified.

context object

The context object.

Returns

int

The calculated size of the SVG element as an integer.