How To Draw on a Memory Bitmap in GDI+ (299583)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- the operating system: Microsoft Windows XP
- the operating system: Microsoft Windows NT 4.0
- the operating system: Microsoft Windows 2000
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
- the operating system: Microsoft Windows XP 64-Bit Edition
This article was previously published under Q299583 SUMMARY
You may sometimes want to obtain a bitmap or image that contains the image that was drawn by a graphics object.
One of the overloaded constructors for the Bitmap class takes a graphics object as a parameter. However, this constructor does not use the image drawn by the graphics object to initialize the bitmap bits. It simply creates a bitmap with properties similar to the graphics object, such as dots per inch.
REFERENCESFor additional information on capturing the screen using GDI, click the article number below
to view the article in the Microsoft Knowledge Base:
186736 How To Capture and Print an Entire Window
"Capturing an Image" in the GDI section of the Platform SDK Documentation:
Modification Type: | Minor | Last Reviewed: | 4/4/2006 |
---|
Keywords: | kbDSWGDI2003Swept kbhowto KB299583 |
---|
|