Method FromSvgString
FromSvgString(string, int, int, Color?)
Initializes a new instance of the Image class from the specified string which contains svg data.
public static Image FromSvgString(string s, int width, int height, Color? color = null)
Parameters
s
stringString with svg data.
width
intImage width.
height
intImage height.
color
ColorSvg fill color. Optional. If provided, svg fill color is changed to the specified value.
Returns
- Image
Image instance with dimensions specified in
width
andheight
and data loaded froms
.