vidiware Posted January 9, 2003 Posted January 9, 2003 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.