| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"Status Malus" |
| Date: |
20 Dec 2003 02:08:01 AM |
| Object: |
C++/MFC Graphics |
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
.
|
|
| User: "Moonlit" |
|
| Title: Re: C++/MFC Graphics OT |
20 Dec 2003 09:15:06 AM |
|
|
Hi,
"Status Malus" <statusmalusNOSPAM@hotmail.com> wrote in message
news:BrTEb.23635$031.19683@fe3.columbus.rr.com...
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.
.
|
|
|
|

|
Related Articles |
|
|