Forum Libraries, Components, and Plugins


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Stroke scaling

Hi guys,

It is possible to disable stroke scale?

    var objectTransform = Transform;

    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);


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

Sign In or Register to comment.