Drag and drop problem

J

jamie

I have a few bitmaps drawn on a form and I
wish to have the ability to move each of the
individual bitmaps on that form. I am using
the paint event to draw the images directly
on the form.

The problem comes when I am trying to "touchup"
the background form. I could redraw the entire
background, but that would make moving an
individual image a piticularly processor consuming
task and probably slow. I also thought about drawing
on an bitmap, and then redrawing only a portion of the
bitmap to the form. (kinda like double buffering, and
fixing the portion that was messed up by the over
passing image.)

The only other idea that I had was to use the unwraped
gdi and remember what was under the moving bmp, so that
I could "patch-up" the background.(kinda like what the
mouse, I am assuming, does.)

Any body have a slicker way(s), or better suggestions?

thanks
jamie
 
C

Chris, Master of All Things Insignificant

Have you thought about putting the bitmaps into pictureboxes? Then you can
move the picturebox and the framework will handle the redraw for you. You
should be able to draw onto the picturebox directly still.

Just a thought.

Chris
 
J

jamie

Yes I have thought about doing that,
and yes I have done that in the past,
but it seamed too slow. I am dealing
with up to +- 1000x1000 pixel images.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top