Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1.         void OnCanvasViewPaintSurface(object sender, SKPaintSurfaceEventArgs args)
  2.         {
  3.             SKImageInfo info = args.Info;
  4.             SKSurface surface = args.Surface;
  5.             SKCanvas canvas = surface.Canvas;
  6.  
  7.             canvas.Clear();
  8.  
  9.             SKPaint paint = new SKPaint
  10.             {
  11.                 Style = SKPaintStyle.Stroke,
  12.                 Color = Color.Red.ToSKColor(),
  13.                 StrokeWidth = 25
  14.             };
  15.             paint.Style = SKPaintStyle.Fill;
  16.             paint.Color = SKColors.Blue;
  17.             canvas.DrawCircle(args.Info.Width / 2, args.Info.Height / 2, 100, paint);
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement