KenSimone Posted April 13, 2006 Share Posted April 13, 2006 I understand that the eraser tool sets a layer's alpha to zero. Is the image information discarded at this point, or is there a way to unerase? Some sort of "paint on alpha" tool would be cool. Sorry if this has already been discussed. I tried to search, really :-) Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted April 13, 2006 Share Posted April 13, 2006 No sorry, this isn't possible with our toolset. While it's true that the eraser simply works on the alpha channel, we don't have a tool for setting the alpha channel to 255. Although a CodeLab script to do this is trivial: void Render(Surface dst, Surface src, Rectangle rect) { for(int y = rect.Top; y { for (int x = rect.Left; x { ColorBgra c = src[x, y]; c.A = 255; dst[x, y] = c; } } } I drew some red brush strokes, erased it all with the Eraser tool, and then this script "restored" the stuff I'd just "hidden." Quote 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 More sharing options...
KenSimone Posted April 13, 2006 Author Share Posted April 13, 2006 Thanks for the quick response. I think some sort of alt-key behavior w/ the eraser would be really cool. Maybe eraser+alt sets the alpha to the gray value of the currently selected foreground color in the tools palette. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.