Changes

Jump to: navigation, search

Using Bitmaps for Persistent Graphics in C Sharp

26 bytes added, 19:04, 30 January 2008
Changing the Background Color of a Bitmap
== Changing the Background Color of a Bitmap ==
If you followed the tutorial you will now have a plum color circle drawn on a black background. The background is black because this is the default for a new Bitmap object and we made not attempt change the color after we created the Graphics Object. Had we wanted a different background color we could have called the ''Clear()'' method of the graphics objectbitmap's Graphics Object, passing in a new color:
<pre>
</pre>
The above code will clear the bitmap and , in doing so, change the color of the background to white.

Navigation menu