Click or drag to resize

DrawingUtilitiesBitmapFromSvg Method (String, Int32, Int32, Boolean)

Create bitmap of a given size from an svg string

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 8.0
Syntax
public static Bitmap BitmapFromSvg(
	string svg,
	int width,
	int height,
	bool adjustForDarkMode
)

Parameters

svg
Type: SystemString
A valid svg string
width
Type: SystemInt32
Width of the svg in pixels
height
Type: SystemInt32
Height of the svg in pixels
adjustForDarkMode
Type: SystemBoolean
If true dark mode specific attributes will be used in the svg

Return Value

Type: Bitmap
A
See Also