public void AddPoint(CanvasPoint p) { if (_path.PointCount == 0) { _startFigure = false; _path.MoveTo(p.ToSKPoint()); } else { _path.LineTo(p.ToSKPoint()); } }
public void DrawBitmap(IBitmap bitmap, CanvasPoint point) { _canvas?.DrawBitmap((SKBitmap)bitmap.EngineElement, point.ToSKPoint(), new SKPaint() { FilterQuality = this.InterpolationMode.ToSKFilterQuality(), }); }
public void DrawText(string text, IFont font, IBrush brush, CanvasPoint point, IDrawTextFormat format) { var skPoint = point.ToSKPoint(); var skPaint = GetSKPaint(font, (SKPaint)brush.EngineElement, format, ref text, ref skPoint); DrawMultilineText(text, skPoint, skPaint); }
public void DrawText(string text, IFont font, IBrush brush, CanvasPoint point) { DrawMultilineText(text.RemoveReturns(), point.ToSKPoint(), GetSKPaint(font, (SKPaint)brush.EngineElement)); }
public void DrawLine(IPen pen, CanvasPoint p1, CanvasPoint p2) { _canvas?.DrawLine(p1.ToSKPoint(), p2.ToSKPoint(), GetSKPaint(pen)); }