MJW Posted December 20, 2015 Share Posted December 20, 2015 (edited) I believed it was okay to do all the rendering in OnSetRenderInfo; however, when I wrote a plugin that does that, it worked fine with rectangular selections, but when I tried a circular selection, it wrote outside the selected area. Red ochre asked about the same problem in a earlier thread, and was advised to use a per-pixel selectionRegion.IsVisible test. I don't mind testing IsVisible (though I've read in the past that it's slow), but I want to make sure writing to the dst surface in OnSetRenderInfo is allowed, and not just something that happens to work as long as IsVisible is tested. Edited December 20, 2015 by MJW Quote Link to comment Share on other sites More sharing options...
BoltBait Posted December 20, 2015 Share Posted December 20, 2015 Bad idea. Try it and you'll see that it breaks Undo. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
MJW Posted December 20, 2015 Author Share Posted December 20, 2015 I just tried it with my plugin, and undo seems to work, at least for the case I tried. A 2011 comment by Rick Brewster suggests it was acceptable, if perhaps not ideal, at that time, Quote Link to comment Share on other sites More sharing options...
BoltBait Posted December 20, 2015 Share Posted December 20, 2015 Sorry, I wasn't clear. I meant to say, try writing outside of the ROI and you'll break Undo. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game 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.