C# Class Painting.Ink.Controls.CanvasRenderTargetExtension

Datei anzeigen Open project: tmyt/PaintCanvas Class Usage Examples

Public Methods

Method Description
Clone ( this target ) : CanvasRenderTarget
CreateEmpty ( ICanvasResourceCreator device, Size size, float dpi ) : CanvasRenderTarget
CreateEmpty ( ICanvasResourceCreatorWithDpi device, Size size ) : CanvasRenderTarget
DrawLine ( this target, Vector2 from, Vector2 to, Color color, float strokeWidth, CanvasStrokeStyle strokeStyle, float opacity ) : void
EraseLine ( this target, Vector2 from, Vector2 to, float strokeWidth, CanvasStrokeStyle strokeStyle ) : void
GetPixelColor ( this target, int left, int top ) : Color

Method Details

Clone() public static method

public static Clone ( this target ) : CanvasRenderTarget
target this
return CanvasRenderTarget

CreateEmpty() public static method

public static CreateEmpty ( ICanvasResourceCreator device, Size size, float dpi ) : CanvasRenderTarget
device ICanvasResourceCreator
size Windows.Foundation.Size
dpi float
return CanvasRenderTarget

CreateEmpty() public static method

public static CreateEmpty ( ICanvasResourceCreatorWithDpi device, Size size ) : CanvasRenderTarget
device ICanvasResourceCreatorWithDpi
size Windows.Foundation.Size
return CanvasRenderTarget

DrawLine() public static method

public static DrawLine ( this target, Vector2 from, Vector2 to, Color color, float strokeWidth, CanvasStrokeStyle strokeStyle, float opacity ) : void
target this
from Vector2
to Vector2
color Color
strokeWidth float
strokeStyle CanvasStrokeStyle
opacity float
return void

EraseLine() public static method

public static EraseLine ( this target, Vector2 from, Vector2 to, float strokeWidth, CanvasStrokeStyle strokeStyle ) : void
target this
from Vector2
to Vector2
strokeWidth float
strokeStyle CanvasStrokeStyle
return void

GetPixelColor() public static method

public static GetPixelColor ( this target, int left, int top ) : Color
target this
left int
top int
return Color