Results 1 to 3 of 3

Thread: Erase image drawn with DrawImage()

  1. #1

    Thread Starter
    Hyperactive Member Bloged's Avatar
    Join Date
    May 2001
    Location
    Rotterdam, The Netherlands
    Posts
    330

    Erase image drawn with DrawImage()

    Hi everyone,


    This is what I use to draw in image (pion) in my Picturebox (holding map)
    VB Code:
    1. Dim gr As Graphics = pctBox.CreateGraphics
    2. gr.DrawImage(New Bitmap("c:\pion.gif"), iX, iY)
    But now I want when the pion moves erase his picture from the map and redraw it somewhere else... I get the redrawing part now I want to know how to erase it!

    Anyone?

    Thanks in advance,

    Bloged

  2. #2
    Addicted Member Hole-In-One's Avatar
    Join Date
    Mar 2003
    Location
    Minnesota
    Posts
    195
    Not sure I understand, but can you use:

    Code:
    pctbox.Refresh()
    then redraw the image somewhere else?

  3. #3

    Thread Starter
    Hyperactive Member Bloged's Avatar
    Join Date
    May 2001
    Location
    Rotterdam, The Netherlands
    Posts
    330
    Thnx Hole-In-One,

    It works... but flickers very badly! Anyone else ideas... if not this is the way to go

    Grtz,

    Bloged

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width