Feedback
Canvas outline drawing clips at drawing surface edge
- Status
- Fixed
- Fixed in
- v26.6.5
- Source discussion
- https://forum.objo.dev/d/398-drawing-in-canvas-off-by-a-point/2
- Last updated
- 2026-06-21
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Drawing the outline of a rectangle or rounded rectangle at the full Canvas bounds, such as g.DrawRoundRectangle(0, 0, g.Width, g.Height, 8), clips half of the stroke at the top, left, bottom, and right edges. Rounded rectangle corners can also look smeared because the centred stroke is clipped by the canvas boundary. The outline should be drawn inside the requested bounds so a full-canvas border is visible without manually insetting the rectangle.