Guest User

Untitled

a guest
Jun 11th, 2014
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1.     // Draws up the background every frame (50ms)
  2.    
  3.     // Where the tile is on the tile map and GDI+ loading existing GDI HBITMAP (changing later)
  4.     Rect rcBackgroundTiles(0,0,64,64);  
  5.     Bitmap bmpTestingIt(hbmBackgroundTile, NULL);
  6.  
  7.     // Using a GDI buffer
  8.     Graphics g(buffer.getBufferDC()); // change to?
  9.  
  10.     // The texture brush and location, paint entire window with texture
  11.     TextureBrush brush(&bmpTestingIt, rcBackgroundTiles);
  12.     g.FillRectangle(&brush, 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);
  13.  
  14.  
  15. I cannot figure out how to store it as a (GDI+) HBITMAP. I know CreateCompatibleDC(), CreateCompatibleBitmap(), in GDI, but I cannot figure out how to get one started in GDI+.
Advertisement
Add Comment
Please, Sign In to add comment