Exemple #1
0
        public override void OnDraw(SkiaSharpDrawingContext context, SKPaint paint)
        {
            var rx = Width / 2f;
            var ry = Height / 2f;

            context.Canvas.DrawOval(X + rx, Y + ry, rx, ry, paint);
        }
 public override void OnDraw(SkiaSharpDrawingContext context, SKPaint paint)
 {
     context.Canvas.DrawRect(
         new SKRect {
         Top = Y, Left = X, Size = new SKSize {
             Height = Width, Width = Width
         }
     }, paint);
 }
        public override void OnDraw(SkiaSharpDrawingContext context, SKPaint paint)
        {
            var rx = Width / 2f;

            context.Canvas.DrawCircle(X + rx, Y + rx, rx, paint);
        }