C# Класс Painting.Ink.Controls.CanvasRenderTargetExtension

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Clone() публичный статический Метод

public static Clone ( this target ) : CanvasRenderTarget
target this
Результат CanvasRenderTarget

CreateEmpty() публичный статический Метод

public static CreateEmpty ( ICanvasResourceCreator device, Size size, float dpi ) : CanvasRenderTarget
device ICanvasResourceCreator
size Windows.Foundation.Size
dpi float
Результат CanvasRenderTarget

CreateEmpty() публичный статический Метод

public static CreateEmpty ( ICanvasResourceCreatorWithDpi device, Size size ) : CanvasRenderTarget
device ICanvasResourceCreatorWithDpi
size Windows.Foundation.Size
Результат CanvasRenderTarget

DrawLine() публичный статический Метод

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
Результат void

EraseLine() публичный статический Метод

public static EraseLine ( this target, Vector2 from, Vector2 to, float strokeWidth, CanvasStrokeStyle strokeStyle ) : void
target this
from Vector2
to Vector2
strokeWidth float
strokeStyle CanvasStrokeStyle
Результат void

GetPixelColor() публичный статический Метод

public static GetPixelColor ( this target, int left, int top ) : Color
target this
left int
top int
Результат Color