Method FromSvgUrlForToolbar
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
stringThe file or embedded resource url with Svg data used to load the image.
control
IControlControl which GetDPI() method is used to get DPI.
color
ColorSvg fill color. Optional. If provided, svg fill color is changed to the specified value.
Returns
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.