Class HardwareAcceleratedInkProcessor
- Namespace
- Ink_Canvas.Helpers
- Assembly
- InkCanvasForClass.dll
硬件加速的墨迹处理器,利用WPF的GPU渲染能力
public class HardwareAcceleratedInkProcessor
- Inheritance
-
HardwareAcceleratedInkProcessor
- Inherited Members
Constructors
HardwareAcceleratedInkProcessor(int, int)
public HardwareAcceleratedInkProcessor(int width = 1920, int height = 1080)
Parameters
Methods
Dispose()
释放GPU相关资源标记
public void Dispose()
ParallelBezierInterpolation(StylusPoint[], int)
使用GPU加速的并行贝塞尔计算
public static StylusPoint[] ParallelBezierInterpolation(StylusPoint[] controlPoints, int segments = 32)
Parameters
controlPointsStylusPoint[]segmentsint
Returns
SmoothStrokeWithGPU(Stroke)
使用GPU加速的贝塞尔曲线平滑
public Task<Stroke> SmoothStrokeWithGPU(Stroke originalStroke)
Parameters
originalStrokeStroke