creating a bitmap image in MFC

Status
Not open for further replies.

chehouani

Newbie level 3
Joined
May 16, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
Hi
i want to generate in VC++ an image from a 2D array of numerical value A[512][512] that each value is a gray level from 0 to 255. is there anay VC++ function to do this ?
thank you
 

It's not that hard. All you have to do is to work with the drawing related classes,e.g.
CBitmap (bitmap handling), CDC (Device context handling), CGdiObject, etc. IIRC you might need to subclass the CBitmap object inside a CWindow derived object. Do some google search on these classes for articles. Furthermore, I suppose that you have MSDN Library documentation handy, right? If you have't got it then it'll be quite hard to develop software with Microsoft Visual C++ coz it's the main source of information/refrence for the classes and windows APIs.

happy coding :wink:
 

**broken link removed**

Added after 1 minutes:

**broken link removed**
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…