Class AsyncAdvancedBezierSmoothing
- Namespace
- Ink_Canvas.Helpers
- Assembly
- InkCanvasForClass.dll
改进的异步硬件加速墨迹平滑处理器,使用优化的三次贝塞尔曲线拟合
public class AsyncAdvancedBezierSmoothing
- Inheritance
-
AsyncAdvancedBezierSmoothing
- Inherited Members
Constructors
AsyncAdvancedBezierSmoothing(Dispatcher)
public AsyncAdvancedBezierSmoothing(Dispatcher uiDispatcher)
Parameters
uiDispatcherDispatcher
Properties
CurveTension
public double CurveTension { get; set; }
Property Value
InterpolationSteps
public int InterpolationSteps { get; set; }
Property Value
MaxConcurrentTasks
public int MaxConcurrentTasks { get; set; }
Property Value
ResampleInterval
public double ResampleInterval { get; set; }
Property Value
SmoothingStrength
public double SmoothingStrength { get; set; }
Property Value
UseAdaptiveInterpolation
public bool UseAdaptiveInterpolation { get; set; }
Property Value
UseHardwareAcceleration
public bool UseHardwareAcceleration { get; set; }
Property Value
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
originalStrokeStrokeonCompletedAction<Stroke, Stroke>cancellationTokenCancellationToken