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

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