Exemplo n.º 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);
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        public override void OnDraw(SkiaSharpDrawingContext context, SKPaint paint)
        {
            var rx = Width / 2f;

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