image - Moving dot on picturebox in vb.net -


i have picturebox, , need draw single red pixel @ given coordinate. pixel move, , when assign new position old position removed, single pixel red @ given time. if possible nice pixel 50% transparent.

the crucial thing has fast. used display current position beeing processed on image, imperative not slow down main program.

can done? thanks

in addition hans's comment:

dim currentpoint point = point.empty  private sub button1_click(byval sender object, byval e eventargs) handles button1.click     ' clear previous pixel     dim invalidrect rectangle = new rectangle(currentpointeger.x,currentpointeger.y, 1, 1)      picturebox1.invalidate(invalidrect)      ' move next point how     currentpoint.x = currentpoint.x + 1      ' invalidate draw new pixel     invalidrect = new rectangle(currentpointeger.x, currentpointeger.y, 1, 1)     picturebox1.invalidate(invalidrect) end sub  private  sub picturebox1_paint(byval sender object, byval e painteventargs) handles picturebox1.click     if e.cliprectangle.contains(currentpoint)         e.graphics.fillrectangle(brushes.red, currentpointeger.x, currentpointeger.y, 1, 1)     end if end sub 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -