Re: Draw an Image on my Form

Tech-Archive recommends: Fix windows errors by optimizing your registry



yes. you can draw it in a sprite

you might be better off creating your own grid as say a user control and drawing the bitmaps and grid yourself.

email me at ski99@xxxxxxxxxxxxxxxxx if ya need help workin out sprites.

Scott

DraguVaso wrote:
Yes I am able to do it with the standard grid: I'm actually doing it
already. But I just want to be able to do it with DirectX....

So my question is still: how do I paint an image using directX? does nobody
knows this? :-S

"James Westgate" <jameswestgate@xxxxxxxxxxxxx> wrote in message
news:%236FWZ94kFHA.572@xxxxxxxxxxxxxxxxxxxxxxx

You wont be able to do this with the standard datagrid, I think you will
need to find a third party grid that supports drawing an image in each

cell

and then keeps that on its backbuffer and doesnt render the image with

each

paint, or find an open source grid and modify for you needs.

James

--
Create interactive diagrams and flowcharts with ERM Diagram at
http://www.crainiate.net

Take the ERM Tour at http://www.flowchartcontrol.com

"DraguVaso" <pietercoucke@xxxxxxxxxxx> wrote in message
news:ekI$dC4kFHA.1412@xxxxxxxxxxxxxxxxxxxxxxx

Hi,

I have an inherited DataGrid, that does lots of extra stuff. For exemple
drawing a backgroundimage in every cell. The problem is that it's taking
too
much time (using gdi+), so I want to do it using DirectX. I downloaded
already the DSK etc, but I can't find how I need to draw an image on a
given
position. I don't need stuff to write advanced 3D-games, just painting
that
image. Can anybody help me with this? I'm already looking for this the
whole
afternoon :-/

I learned already that I shouldn't use DirectDraw (not supported

anymore)

but Direct3D? But that's really all I know yet.

Basicly I jsut need to be able to draw an imahe (jpg, bitmap) on a Form

in

VB.NET: as simple and as fast as possible.. :-)

Thanks a lot in advance,

Pieter






.



Relevant Pages

  • Re: Best way to draw color bitmaps on dialog buttons?
    ... I've got a dialog in my app that had several push buttons on it. ... But I'm not exactly sure how and when to draw the bitmaps. ... I'm wondering when exactly I can do the filled-rectangle drawing in those ...
    (microsoft.public.win32.programmer.ui)
  • Re: Transparency Revisited...
    ... object oriented drawing program. ... I've got shape objects that draw themselves. ... needed to redraw all the object even as the mouse was moving while drawing - ... But redrawing the background grid was giving flicker because, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: objects will not snap to grid
    ... to me if I can not rely on the grid being the original. ... I have found in the same day that I could draw a picture with the drawing ... 'snap objects to grid', but the lines and shapes I draw are not attached to ...
    (microsoft.public.word.application.errors)
  • Re: objects will not snap to grid
    ... I am creating a diagram. ... If I put one corner on the grid, the other three corners are not on ... I do like the word drawing editor better than Visio as others can edit ... I have found in the same day that I could draw a picture with the drawing ...
    (microsoft.public.word.application.errors)
  • Re: Transparency Revisited...
    ... Draw the shapes on bitmaps then use bitblt to copy the bitmaps to the desired ... > Anyone have any suggestions on how to separate the two drawing planes? ...
    (microsoft.public.dotnet.languages.vb)