SAMPLE: Drawing to a Memory Bitmap for Faster PerformanceLast reviewed: February 15, 1996Article ID: Q130805 |
The information in this article applies to:
An application whose client area is a complex image can realize a performance benefit from drawing to a memory bitmap. The complex, time consuming drawing code need only be performed once - to initialize the offscreen bitmap. During the handling of the WM_PAINT message, the only work that needs to be done is a simple BitBlt from the memory bitmap to the screen. Sample code demonstrating this technique is available in the Microsoft Software Library. The MemDC sample code draws a complex pattern on its client area. A menu option toggle allows the user to see the speed difference between using and not using the offscreen bitmap. Download MEMDC.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services: |
Additional reference words: 1.20 3.10 3.50 4.00 95 device context memory DC
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |