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