Table of Contents

Method LoadSvgImage

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

LoadSvgImage(string, SizeI, Color?)

Creates ImageSet and loads Svg data from the specified url.

public static ImageSet LoadSvgImage(string url, SizeI imageSize, Color? color = null)

Parameters

url string

File or resource url with Svg data.

imageSize SizeI

Svg image width and height.

color Color

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

Returns

ImageSet

LoadSvgImage(string, SizeD, Color?)

Creates ImageSet and loads Svg data from the specified url.

public static ImageSet LoadSvgImage(string url, SizeD imageSize, Color? color = null)

Parameters

url string

File or resource url with Svg data.

imageSize SizeD

Svg image width and height.

color Color

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

Returns

ImageSet

LoadSvgImage(string, Control, Color?)

Creates ImageSet and loads Svg data from the specified url.

public static ImageSet LoadSvgImage(string url, Control dpiControl, Color? color = null)

Parameters

url string

File or resource url with Svg data.

dpiControl Control

Control which GetDPI() method is used to get DPI settings.

color Color

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

Returns

ImageSet

Remarks

Gets DPI settings from dpiControl and selects appropriate images size using GetDefaultImageSize(Control?).