Table of Contents

Class AsyncAdvancedBezierSmoothing

Namespace
Ink_Canvas.Helpers
Assembly
InkCanvasForClass.dll

改进的异步硬件加速墨迹平滑处理器,使用优化的三次贝塞尔曲线拟合

public class AsyncAdvancedBezierSmoothing
Inheritance
AsyncAdvancedBezierSmoothing
Inherited Members

Constructors

AsyncAdvancedBezierSmoothing(Dispatcher)

public AsyncAdvancedBezierSmoothing(Dispatcher uiDispatcher)

Parameters

uiDispatcher Dispatcher

Properties

CurveTension

public double CurveTension { get; set; }

Property Value

double

InterpolationSteps

public int InterpolationSteps { get; set; }

Property Value

int

MaxConcurrentTasks

public int MaxConcurrentTasks { get; set; }

Property Value

int

ResampleInterval

public double ResampleInterval { get; set; }

Property Value

double

SmoothingStrength

public double SmoothingStrength { get; set; }

Property Value

double

UseAdaptiveInterpolation

public bool UseAdaptiveInterpolation { get; set; }

Property Value

bool

UseHardwareAcceleration

public bool UseHardwareAcceleration { get; set; }

Property Value

bool

Methods

CancelAllTasks()

取消所有正在进行的处理任务

public void CancelAllTasks()

Dispose()

释放资源

public void Dispose()

SmoothStrokeAsync(Stroke, Action<Stroke, Stroke>, CancellationToken)

异步平滑笔画

public Task<Stroke> SmoothStrokeAsync(Stroke originalStroke, Action<Stroke, Stroke> onCompleted = null, CancellationToken cancellationToken = default)

Parameters

originalStroke Stroke
onCompleted Action<Stroke, Stroke>
cancellationToken CancellationToken

Returns

Task<Stroke>