Help Silly Graphics

vidiware

Active member
Joined
Dec 3, 2002
Messages
39
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:

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?
 

Attachments

Back
Top