Jump to content

about lasso function in paint.net 2.1b

Recommended Posts

sorry for my poor english


in tool.cs class

protected virtual void OnStylusDown(StylusEventArgs e)



is your own definition

but you haven't defined delegate to it

what time does it take effect

i want to develop a medical soft with lasso select function

little person develop it,i only can ask it on the forum,please help me

Link to comment
Share on other sites

The events in Tool.cs do not call event delegates for external clients to handle -- they are meant to be overriden by derived classes.

What will happen is that SurfaceBox or DocumentView will receive input, possibly via OnMouseDown or the stylus input plugin, and will then raise a corresponding event that is handled by DocumentWorkspace. This input event is then pushed to the current Tool via the Perform* methods.

If you want to know how it works, you really should just use the excellent debugging facilities provided by Visual Studio and step through the code. Set a breakpoint where you want to investigate, and then go from there.

Anyway I don't see how this is specifically related to Paint.NET -- it seems you need help or information on how to work with mouse input in general, correct? If so you may find better help at a more general C# developers' forum.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...