Jump to content

Plugin: Testing if a point falls within the current user selection.


Recommended Posts

Hey guys,

Newbie here. I'm currently developing a plugin for Paint.NET that uses Poisson Interpolation (think Photoshop's healing tool). The only thing holding me back is detecting whether a given pixel falls within the user selection (strictly the user selection, not the bounding rectangle). How can I accomplish this?

And in general, is there documentation for developing plugins?

Thanks, Micah

Link to comment
Share on other sites

For information on writing plugins, I recommend a read of the info on BoltBait's website: http://www.BoltBait.com (you've met CodeLab right?).  Also check out the Plugin Developers Central section of this forum: http://forums.getpaint.net/index.php?/forum/17-plugin-developers-central/

 

You don't need to worry about clipping to the current selection.  This is handled automatically for you by Paint.NET.  Just write all the pixels to the destination (dst).  Selection clipping will be applied before the dst is written to the layer.

Link to comment
Share on other sites

Yeah I know that Paint.NET automatically handles clipping for me...

Perhaps I should be more direct; the algorithm I'm using needs to know the specific pixels that are on the boundary of the user selection in order to interpolate the interior with them. If you guys have any inclination as to how that could be done it would be much appreciated.

Link to comment
Share on other sites

<Moved to Plugin Developers Central>

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.

Guest
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...