GDI+ problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lloyd Dupont

    #1

    GDI+ problem

    I'm working in ManagedC++

    In the OnPaint of my control I get a System::Drawing ::Graphics object to
    which I apply some transformation (Scaling, smoothing mode, clipping and so
    on).

    Later on I need to call a function of the #include <GdiPlusFlat. h> API.

    How do I get a "GpGraphics *" from a "System::Drawin g::Graphics^" ?


  • Lloyd Dupont

    #2
    Re: GDI+ problem

    I'm trying to use the C++ interface.
    I included <GdiPlus.h>

    Which begins by "namespace Gdiplus.h".
    However when I try to use it, and for example write
    using namespace Gdiplus;

    I have a synxatx error: "a namespace with this name does not exist"
    mmhh???
    what happen? what should I do?

    "Lloyd Dupont" <net.galador@ld > wrote in message
    news:%23hArBpJn FHA.2580@TK2MSF TNGP09.phx.gbl. ..[color=blue]
    > I'm working in ManagedC++
    >
    > In the OnPaint of my control I get a System::Drawing ::Graphics object to
    > which I apply some transformation (Scaling, smoothing mode, clipping and
    > so on).
    >
    > Later on I need to call a function of the #include <GdiPlusFlat. h> API.
    >
    > How do I get a "GpGraphics *" from a "System::Drawin g::Graphics^" ?
    >[/color]


    Comment

    Working...