Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

creating a bitmap image in MFC

Status
Not open for further replies.

chehouani

Newbie level 4
Joined
May 16, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,311
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
 

Pinczakko

Full Member level 2
Joined
Jul 29, 2004
Messages
138
Helped
13
Reputation
26
Reaction score
0
Trophy points
1,296
Location
Taka Bonerate National Park, Indonesia
Activity points
1,592
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:
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top