How can I draw Rectangles, Lines, Circles, etc to a CBitmap object. Later I wish to save this CBitmap object to a .BMP File. How can I achieve this.
Also please provide some small code sample for drawing to the CBitmap object.
Printable View
How can I draw Rectangles, Lines, Circles, etc to a CBitmap object. Later I wish to save this CBitmap object to a .BMP File. How can I achieve this.
Also please provide some small code sample for drawing to the CBitmap object.
Start by checking out the CDC class. You will use this class to select your bitmap and do your drawing.