GDI+ to DirectX

I use GDI+ in my application, with visual basic .net 2005 , but now that im trying to create new functionalities, i'm using DirectX and Visual C#. I've encountered a big problem. The application is a medical application where the doctor has to click, with the mouse, in certain parts of an image. Those clicks will create points that the program will save in a database in order to later display them on screen. When i use directx and visual c#, the points aren't shown in their correct location. The points are a lot close together and in different locations. In GDI i was drawing on a picturebox and now i'm just drawing in a black screen. I've already summed (+) then picturebox.left and picturebox.top, but even that didn't work. the picturebox was drawing in pixels. Could directx be drawing in another measure?

Can you please help?

My thanks in advanced

Comments

  • It is possible. If you are using perspective projection and not orthographics projects then yeah the pixel position will be way different than the regular 2D screen that GDI will probably give you. If you can show the projection setup you are using then probably we can help more.

    : I use GDI+ in my application, with visual basic .net 2005 , but now
    : that im trying to create new functionalities, i'm using DirectX and
    : Visual C#. I've encountered a big problem. The application is a
    : medical application where the doctor has to click, with the mouse,
    : in certain parts of an image. Those clicks will create points that
    : the program will save in a database in order to later display them
    : on screen. When i use directx and visual c#, the points aren't shown
    : in their correct location. The points are a lot close together and
    : in different locations. In GDI i was drawing on a picturebox and now
    : i'm just drawing in a black screen. I've already summed (+) then
    : picturebox.left and picturebox.top, but even that didn't work. the
    : picturebox was drawing in pixels. Could directx be drawing in
    : another measure?
    :
    : Can you please help?
    :
    : My thanks in advanced
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion