Jump to content

Why does the paint tool "bleed"? Is there a way to prevent this?


Recommended Posts

You'll find these settings in the tool bar when the paint bucket is active. In order, try ...

 

1. using a zero tolerance - this will fill only exact pixel matches.

 

2. Turn off antialiasing

 

3. Set the Sampling mode to Layer

 

4. Set tool blend mode to Normal

Link to comment
Share on other sites

There is an oddness to the way the Paint Bucket fill works with antialiasing enabled. If you fill an area that has an all-black outline, the color of the outline pixels is slightly modified by the fill color so it's no longer black. I don't know for sure that it's a bug. Perhaps it's a more or less necessary consequence of the antialiased fill. In any event, it would be better if it didn't do that.

Link to comment
Share on other sites

Set tolerance to zero and disable antialiasing.

 

MJW, what you're seeing is feathering, which is controlled by the antialiasing setting. Tolerance determines which pixels are included in the region that either tool operates on directly (PB and MW use the exact same flood fill algorithm and code), and then the PB tool applies feathering for every pixel adjacent to that region.

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

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

forumSig_bmwE60.jpg

Link to comment
Share on other sites

1 hour ago, MJW said:

Someday I'll have to look at the disassembled PDN flood-fill code.

 

You'll want the comments though.

 

https://pastebin.com/t0yYvXsM

  • Like 1

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

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

forumSig_bmwE60.jpg

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