Results 1 to 6 of 6

Thread: PSET redraw problem (pics included)

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    PSET redraw problem (pics included)

    I have a picturebox and it draws circles according to the movement of the mouse pointer




    It stores the x-y coordinates in a collection object.

    Code:
    Private Sub picCamera_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
    
    Dim var As New Entity
    
    If Shift = 1  Then          
                picCamera.Circle (x, y), 25, vbRed  
                var.x = x
                var.y = x
                var.t = route.Count + 1
                route.Add var
               
    End If
    End Sub
    When I redraw the coordinates in the collection, the following is the shape. It looks completely different. It is supposed to be the same as the original shape.






    Code:
    For i = 1 To route.Count
                x = route.Item(i).x
                y = route.Item(i).y          
                frmCamera.picCamera.Circle (x, y), 25, vbRed       
    
    Next i

    By the way, just ignore "Time step". It doesn't mean anything.
    Last edited by winterslam; Nov 12th, 2008 at 12:17 PM.

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