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
urlstringFile or resource url with Svg data.
imageSizeSizeISvg image width and height.
colorColorSvg 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
urlstringFile or resource url with Svg data.
imageSizeSizeDSvg image width and height.
colorColorSvg 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
urlstringFile or resource url with Svg data.
dpiControlControlControl which GetDPI() method is used to get DPI settings.
colorColorSvg 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?).