Table of Contents

Method FromSvgUrlForToolbar

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

FromSvgUrlForToolbar(string, IControl, Color?)

Initializes a new instance of the Image class from the specified url which points to svg file or resource.

public static Image FromSvgUrlForToolbar(string url, IControl control, Color? color = null)

Parameters

url string

The file or embedded resource url with Svg data used to load the image.

control IControl

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

color Color

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

Returns

Image

Image instance loaded from Svg data for use on the toolbars.

Remarks

This is similar to FromSvgUrl(string, int, int, Color?) but uses GetDPI() and GetDefaultImageSize(double) to get appropriate image size which is best suitable for toolbars.