Method | Description | |
---|---|---|
ConvertStringToColor ( this hexColorString, Color defaultColor ) : Color |
Converts a hex color string to a System.Windows.Media.Color
|
|
SaveAsPngIntoBufferAsync ( this canvas, int dpiForImage = 200 ) : Task |
Save canvas contents as ImageData into buffer
|
public static ConvertStringToColor ( this hexColorString, Color defaultColor ) : Color | ||
hexColorString | this | a hex color string like #FFFFFF00 |
defaultColor | Color | defautl value to if something goes wrong |
return | Color |
public static SaveAsPngIntoBufferAsync ( this canvas, int dpiForImage = 200 ) : Task |
||
canvas | this | |
dpiForImage | int | |
return | Task |