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

displaying bitmaps

Status
Not open for further replies.

oinky

Programmer
Oct 29, 2001
45
US
Hi does any1 know of a good source for information on displaying bitmap data to the screen? I have data for bitmaps and need to display it to the screen, but i am not sure if there is a mfc class that handles this or are there better means of doing this? please help thanks.
 
THere does exist and MFC class called CBitmap. It has a function called LoadBitmap which should handle what you need to do, and you can display it with the picture control.

Matt
 
Hi,
You can even use the BITMAP structure.
Let me know what specifically you need in this.
Thanks.
 
I have been working with the CBitmap class to set up a bitmap object. I tried to use the CPictureHolder class to display the bitmap object i created. However, now i am running into the problem in that CPictureHolder only takes static bitmaps. I cannot update the bitmap on the fly. Someone told me i should draw the bitmap directly using CWnd class but im not sure how to do this. Does any1 have some sample code they have done in displaying bitmaps to screen? Thanks for all ur help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top