Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I got a silly "tail" after the image in a color i can choos by my self,

but i want it to be transparent. Here is the code:

 

Private Sub DrawAll()

   Dim Airwing As Bitmap = New Bitmap(Environment.CurrentDirectory + "\images\airwing.bmp")
   Dim AirwingX As Int32 = 0
   Dim AirwingY As Int32 = 0
   Dim LastAirwingX As Int32 = 0
   Dim LastAirwingY As Int32 = 0

       Dim g As Graphics = Me.CreateGraphics()
       g.DrawRectangle(Pens.Transparent, LastAirwingX, LastAirwingY, Airwing.Width, Airwing.Height)
       g.DrawImage(Airwing, AirwingX, AirwingY)
       g.Dispose()
       LastAirwingX = AirwingX
       LastAirwingY = AirwingY

EndSub

 

Im supposed to move the figure with the keys and that works but i cant remove a silly tail that is made by different things...

Look at the image

 

The PictureBox is is makeing a "green tail that kills the black one"

But the LoadFromFile image is making a silly tale...

And when they cross each other... it look stupid...

Can sombody help me remove this?

problem.zip

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...