Re: GDI to DirectX

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On 30 Sep, 16:36, Ricardo Furtado
<RicardoFurt...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
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

Ricardo,
I'm only just starting off moving from GDI+ to Managed DirectX so
have been running into lots of problems. I've been looking at this
program as a tutorial and I think it may meet your requirement. It
does more than I think you want, but it does allow the user to click
on the screen and add points where the click occurred. It Download the
DirectX.Zip file at the following location http://www.public.iastate.edu/~andrewv/directx/

I hope this helps.
Alan
.



Relevant Pages

  • Re: 2D plot y=f(x) using Direct3D faster than with GDI+ ?
    ... Drawing with Directx is a whole faster than gdi+ ... I suspect that you could optimize your gdi+ drawing, ... perhaps by scaling your vectors before you draw them, ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Scrolling text that doesnt flicker
    ... (I heard that WPF uses DirectX) ... But for scrolling text you can't draw everything only once. ... drawing operation, no one sensible person would have done it that way. ... the TextRenderer class, which I believe uses GDI, not GDI+. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Hints on Drawing in TASM
    ... Theres a few chapters there on speedy line drawing. ... For windows: Use DirectX backbuffer or a GDI BitmapSection to draw in. ... Today some people use Hardware line drawing, ...
    (alt.lang.asm)
  • Re: fast drawing strategies
    ... Drawing on DirectX surfaces is entirely different to drawing on GDI+ ... in this newsgroup for optimizing the drawing of GUI controls. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Faster than GDI+
    ... I'm fairly confident that DirectX would be faster, try porting it to DirectX ... > Is GDI as fast as drawing gets? ...
    (microsoft.public.dotnet.languages.csharp)