예제 #1
0
 public void AddPoint(CanvasPoint p)
 {
     if (_path.PointCount == 0)
     {
         _startFigure = false;
         _path.MoveTo(p.ToSKPoint());
     }
     else
     {
         _path.LineTo(p.ToSKPoint());
     }
 }
예제 #2
0
 public void DrawBitmap(IBitmap bitmap, CanvasPoint point)
 {
     _canvas?.DrawBitmap((SKBitmap)bitmap.EngineElement, point.ToSKPoint(), new SKPaint()
     {
         FilterQuality = this.InterpolationMode.ToSKFilterQuality(),
     });
 }
예제 #3
0
        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);
        }
예제 #4
0
 public void DrawText(string text, IFont font, IBrush brush, CanvasPoint point)
 {
     DrawMultilineText(text.RemoveReturns(), point.ToSKPoint(), GetSKPaint(font, (SKPaint)brush.EngineElement));
 }
예제 #5
0
 public void DrawLine(IPen pen, CanvasPoint p1, CanvasPoint p2)
 {
     _canvas?.DrawLine(p1.ToSKPoint(), p2.ToSKPoint(), GetSKPaint(pen));
 }