I want to draw a path using skia in my maui project, but I want to use a different color for the stroke then for the fill, for example I want to draw some path with a black border and filled with red.
I tried this
SKPath sVgPath = SKPath.ParseSvgPathData(path); // path holds the svg path as a string
sVgPath.Transform(_matrix);
paint.Color = SKColors.Red;
paint.Style = SKPaintStyle.Fill;
paint.Color = SKColors.Black;
paint.Style = SKPaintStyle.Stroke;
canvas.DrawPath(sVgPath, paint);
but the rendered shape is not filled with red, it seems like the paint style stroke clears the red again.
Can this be done ? Seems simple to me but I can’t figure it out