Stroke scaling

Hi guys,

It is possible to disable stroke scale?

    var objectTransform = Transform;

    canvas.Save();
    canvas.Concat(ref objectTransform);

    using (SKPaint paint = new SKPaint())
    {
           paint.Style = SKPaintStyle.Stroke;

           paint.StrokeWidth = 1;
           paint.IsAntialias = true;
           paint.Color = new SKColor(255, 0, 0, 255);

           canvas.DrawRect(Outline, paint);
    }

    canvas.Restore();

Transform property its matrix that contains user defined transformations. If user applies scaling, stroke scaled also.

Im trying to make object selection rect, that contains transformation controls, like rotate and scale. Rect must be scaled and rotated like selected object

Thank you

Tagged:
Sign In or Register to comment.