RenderableSkiaObject
Introduction
Code Example - Rendering a Circle in Code
public class CustomRenderable : RenderableSkiaObject
{
public override void DrawToSurface(SKSurface surface)
{
// Any skia code works here, but we'll draw an orange circle as an example:
var canvas = surface.Canvas;
using var paint = new SKPaint();
paint.Color = SKColors.Orange;
var radius = Width/2;
canvas.DrawCircle(new SKPoint(radius, radius), radius, paint);
}
}
Last updated
Was this helpful?