C++/MFC Graphics

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Status Malus

    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


  • Moonlit

    #2
    Re: C++/MFC Graphics OT

    Hi,

    "Status Malus" <statusmalusNOS PAM@hotmail.com > wrote in message
    news:BrTEb.2363 5$031.19683@fe3 .columbus.rr.co m...[color=blue]
    > 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[/color]
    drawings[color=blue]
    > 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[/color]
    be[color=blue]
    > great.
    >
    > TIA
    >
    >[/color]

    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
    "programmin g 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 CreateDIBSectio n 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.


    Comment

    Working...