17. How to define and use a bitmap and graphics object and animated display of image in a picture box using a timer.
Define The Bitmap
b = New BitMap(width, height)
The bitmap object constructor takes two inputs: the width and the height of the bitmap. If we are using a PictureBox, the input arguments can be the width and height of our PictureBox.
Creation of the Graphics Object
g = graphics.fromImage(b)
Creation of the Scene(Drawing of various charts)
Display of the bit map on the screen or picture box