Feedback
Add Graphics.Clear(colour) to Desktop Canvas
- Status
- Fixed
- Fixed in
- v26.9.3
- Area
- desktop
- Source discussion
- https://forum.objo.dev/d/1110-improvements-to-the-web-canvas-control/2
- Last updated
- 2026-09-20
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Desktop Canvas has no Graphics.Clear method. Web Canvas gained Graphics.Clear(colour), which fills the whole drawing surface with a colour in one call, but the same drawing code does not compile in a desktop project. Today the only desktop equivalent is setting DrawingColour and calling FillRectangle(0, 0, g.Width, g.Height).
Add Graphics.Clear(colour As Colour) to Desktop Canvas so drawing code that clears the surface works unchanged across desktop and web projects.