Displaying 1 result from an estimated 1 matches for "temp_dc".
Did you mean:
temp_c
2006 Dec 03
0
[776] trunk/wxruby2: Added Bitmap#draw method, updated sample
...ethod
+with a block ensures that the DC is properly set up and disposed of, and
+it''s recommended you use that method to create a MemoryDC rather than
+instantiating it directly.
</ins><span class="cx">
</span><del>-
- // Create a memory DC
- MemoryDC temp_dc;
- temp_dc.SelectObject(test_bitmap);
-
- // We can now draw into the memory DC...
- // Copy from this DC to another DC.
- old_dc.Blit(250, 50, BITMAP_WIDTH, BITMAP_HEIGHT, temp_dc, 0, 0);
-
-
-Note that the memory DC _must_ be deleted (or the bitmap selected out of it) before a bitmap
-c...