C++/MFC Graphics

S

Status Malus

I'm working on a project that requires drawing binary trees, graphs and
modular layouts. The user needs to have the ability to output these drawings
to a file. A lot of the application has already been developed using MFC.
I don't have much experience with graphics programming so if anyone could
point me in a direction to get started (books, websites, etc.) That would be
great.

TIA
 
M

Moonlit

Hi,

Status Malus said:
I'm working on a project that requires drawing binary trees, graphs and
modular layouts. The user needs to have the ability to output these drawings
to a file. A lot of the application has already been developed using MFC.
I don't have much experience with graphics programming so if anyone could
point me in a direction to get started (books, websites, etc.) That would be
great.

TIA

Why not use the standard GDI calls. Should be good enough for drawing lines
circles etc.

Any windows programming book would do for instance charles petzold's
"programming windows".

To save it you can use you can write to the device context and save it as
WMF file or you can use the CreateDIBSection function to write to a bitmap
that is made from you own off screen buffer. You can then use GDI calls to
draw to it and save it as a bitmap or use pnglib or the jpeg library to save
it as png or jpeg file.

Regards, Ron AF Greve.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top