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
Syntaxpublic static Bitmap BitmapFromSvg(
string svg,
int width,
int height,
bool adjustForDarkMode
)
Public Shared Function BitmapFromSvg (
svg As String,
width As Integer,
height As Integer,
adjustForDarkMode As Boolean
) As Bitmap
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:
BitmapA
See Also