Method FromSvgUrl
FromSvgUrl(string, int, int, Color?)
Initializes a new instance of the ImageSet class from the specified url which points to svg file or resource.
public static ImageSet FromSvgUrl(string url, int width, int height, Color? color = null)
Parameters
url
stringThe file or embedded resource url with Svg data used to load the image.
width
intImage width.
height
intImage height.
color
ColorSvg fill color. Optional. If provided, svg fill color is changed to the specified value.
Returns
Remarks
url
can include assembly name. Example:
"embres:Alternet.UI.Resources.Svg.ImageName.svg?assembly=Alternet.UI"