Problem with Trails with picturebox and transparent images

  • Thread starter Thread starter Tim Geiges
  • Start date Start date
T

Tim Geiges

I wrote an image viewer and just added the zoom feature, so when the
image is larger than the form scrollbars appear, but when I scroll the
image(if it has transparency) it leaves a trail of image ghosts from
the previous position.

does anyone know how to stop this from happening?
 
Just a guess but if it's a transparent background then shifting the image
means that the transparent areas aren't redrawn over because, well, their
transparent.

Wouldn't the first thing you do before your image is drawn is to clear the
sheet as it were? Fill the bounding rect with a background colour or effect.

Dan.
 
Back
Top