Table of Contents

Method FromSvgString

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

FromSvgString(string, int, int, Color?)

Initializes a new instance of the ImageSet class from the specified string which contains svg data.

public static ImageSet FromSvgString(string s, int width, int height, Color? color = null)

Parameters

s string

String with svg data.

width int

Image width.

height int

Image height.

color Color

Svg fill color. Optional. If provided, svg fill color is changed to the specified value.

Returns

ImageSet

ImageSet instance with svg data loaded from s.