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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading a bitmap

Status
Not open for further replies.

foxnet

Programmer
Mar 24, 2005
21
US
I am trying to develop a simple card game and use a 800x600 bitmap (created through MS Paint) as a background image. I display the cards also in a bitmap image. My problem comes when I try to remove the cards, I redraw the entire background bitmap again, which causes parts of the screen to flicker. I was planning on creating a 800x600 array to store the pixel information from the bitmap and only redraw the background from the array. Is there a command that returns the pixel value, so I can store this in an array ? Or is there a better way to obtain these results ? Thanks
 
While I suppose you have HBITMAP of you background image, try using GetBitmapBits()

------------------
When you do it, do it right.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top