I am relatively new to any drawing utility. I will explain what I am doing and the result I am seeing I do not understand.
In the PaintSurface method I am first doing a translate
canvas.Translate(info.Width / 2f, info.Height / 2f);
// then scale and draw image
canvas.Scale(ratio);
canvas.Translate(-bounds.MidX, -bounds.MidY);
canvas.DrawPicture(svg.Picture, new SKPaint { Color = SKColors.White, Style = SKPaintStyle.Fill });
// now draw large rectangle that will also be scaled with the image
canvas.DrawRect(layout.RedBorderXOffSet, layout.RedBorderYOffSet, layout.RedBorderWidth, layout.RedBorderHeight, RedBorderPaint)
// then after this I draw smaller rectangles with in the larger rectangle giving a grid like appearance. The rectangles are drawn at specific locations. It works flawalessly just as I would want it too. However when I click on one of the small rectangles I have drawns the touch event is showing a different (X,Y) than where I drew it....I mean not even near the same (X,Y) after adding in Length and Width. I am confused as to how to get the CanvasView to have the same coordinates as the skcanvas after scaling and transforming
Any help would be much appreciated