Method LoadSvgImage
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
stringFile or resource url with Svg data.
imageSize
SizeISvg image width and height.
color
ColorSvg fill color. Optional. If provided, svg fill color is changed to the specified value.
Returns
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
stringFile or resource url with Svg data.
imageSize
SizeDSvg image width and height.
color
ColorSvg fill color. Optional. If provided, svg fill color is changed to the specified value.
Returns
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
stringFile or resource url with Svg data.
dpiControl
ControlControl which GetDPI() method is used to get DPI settings.
color
ColorSvg fill color. Optional. If provided, svg fill color is changed to the specified value.
Returns
Remarks
Gets DPI settings from dpiControl
and selects appropriate
images size using GetDefaultImageSize(Control?).