Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting a bitmap to a DC 1

Status
Not open for further replies.

Sen7inel

IS-IT--Management
Feb 14, 2001
90
0
0
FI
If I get a DC from a window, create a compatible memory-resident DC, create a compatible bitmap for this memory DC, put up some data in the bitmap, select this bitmap into memory DC and then bitblt the memory DC to the window DC, it displays the bitmap. Ok, now, is it somehow possible to do this without using the memory DC?
 
Using a memory DC is the best way to copy a bitmap into a window. You could avoid using the memory DC, and copy the bitmap pixels into the window individually using the SetPixel function, but I don't see what advantage that would have, doing the same thing but not as efficiently.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top