Custom Painting
Custom painting and drawing in the browser.
Last updated
Was this helpful?
Custom painting and drawing in the browser.
Last updated
Was this helpful?
All Wisej.NET controls support custom painting. Simply attach to the Paint event and draw whatever you like, it will display in the browser as the background of the control.
You can't use the BackgroundImage and custom painting. Painting will take over the backgound.
There is no limit to what you can draw: e.Graphics is a GDI+ object that Wisej.NET sends back to the browser as a png image and immediately removes from memory.
This code
Produces this circle.
All the HTML5 Canvas method are available in C# or VB.NET on the server. All the arguments are the same and the names are the same. The only different is that the first character is uppercase and the radians are degrees for simplicity.
In addition to being able to paint any control, Wisej.NET also provides a control that implements the full HTML5 canvas specification on the server.
Use the event to plug in your drawing code.
The control is entirely created in .NET using the Canvas control.