C# Class Microsoft.HockeyApp.Tools.UtilWPExtensions

static class for utility extension methods
Mostra file Open project: bitstadium/HockeySDK-Windows

Public Methods

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

Method Details

ConvertStringToColor() public static method

Converts a hex color string to a System.Windows.Media.Color
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

SaveAsPngIntoBufferAsync() public static method

Save canvas contents as ImageData into buffer
public static SaveAsPngIntoBufferAsync ( this canvas, int dpiForImage = 200 ) : Task
canvas this
dpiForImage int
return Task