我使用OpenGL在.NetCore中设置了SkiaSharp。如果我调用 DrawCircle()函数,它将渲染正方形,这看起来很奇怪。我的代码如下:
using (SKPaint paint = new SKPaint {
Style = SKPaintStyle.Stroke,
Color = SKColors.Red,
StrokeWidth = 25,
}) {
canvas.RotateDegrees( 2 );
canvas.DrawCircle( info.Width / 2, info.Height / 2, 100, paint );
paint.Style = SKPaintStyle.Fill;
paint.Color = SKColors.Blue;
canvas.DrawCircle( info.Width / 2, info.Height / 2, 75, paint );
canvas.RotateDegrees( 20 );
canvas.DrawCircle( info.Width / 2, info.Height / 2, 50, paint );
paint.Style = SKPaintStyle.Fill;
paint.Color = SKColors.Yellow;
canvas.DrawCircle( info.Width / 2, info.Height / 2, 25, paint );
}
为什么有正方形?