Changes

Jump to: navigation, search

Using Bitmaps for Persistent Graphics in C Sharp

3 bytes removed, 22:38, 29 January 2008
Rendering a Bitmap Image on a C# Control
When compiled and executed the code will create the bitmap in memory, create a Graphics Object associated with the bitmap and draw an ellipse into the bitmap image. It will not, at this point, display anything to user because the bitmap is still just an image sitting in memory. The next task is to wire up the ''Paint()'' event to render the bitmap into the Graphics Object of our form.
== Rendering a Bitmap Image on a C# Control ==
The next step is to write some code for the ''Paint()'' event of our form. Select the form in the Visual Studio design area and click on the lightning bolt button in the ''Properties'' dialog to display events. Double click on the Paint event to go to the code area. In the Paint() event enter the following code to draw the bitmap image onto the form:

Navigation menu