CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Location
    UK
    Posts
    33

    Picture1.pset(x,y) won't produce an unbroken line

    code:
    MouseDown
    Paintnow = True

    MouseMove
    Picture1.pset(x,y)

    mouseUp
    Paintnow = False

    With a narrow drawwidth this produces a broken line on anything but very slow mousemovements.

    Is there a way around this ?

    Thanks R.................................


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Picture1.pset(x,y) won't produce an unbroken line

    Becasue MouseMove is not triggered for every pixel movement of the mouse. However "interupt based" the mouse movement is, Windows is not a real time OS!, and it has otherthings to do as well!!

    What you can do is draw small line segments each time you get a MouseMove event. (from your prev. point) You will atleast get a continuous line, if not a all-too-smooth line :-)

    Ravi Kiran


  3. #3
    Join Date
    May 1999
    Location
    UK
    Posts
    33

    Re: Picture1.pset(x,y) won't produce an unbroken line

    Ravi.... Thanks; Problem solved.

    I don't seem to be able to RATE your replies but they are EXCELLENT !!!

    Thanks again.

    R-.......................................


  4. #4
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Picture1.pset(x,y) won't produce an unbroken line

    Why?:-)

    You should be able to see a "Rate This post" followed by a drop-down combo box with 4 ratings and a "Rate it" btn at the RHS bottom of the post!
    Dont you?
    May be you need to be logged-in to do that also?!!


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

Featured