Rick Brewster Posted October 9, 2005 Share Posted October 9, 2005 Hmm... good point, never even thought of that! You can flip selections in v2.5, but it's still a manual process that isn't precise (using the Move Selection tool). I'll file a bug to see about doing this, such as adding a Edit->Flip Selection type of menu item. 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...
Rick Brewster Posted October 11, 2005 Author Share Posted October 11, 2005 In version 2.5, selections make a lot more sense (we haven't released the source code yet). There's an actual Selection class that is maintained by the DocumentEnvironment. All you'd have to do to flip the selection horizontally would be the following code: Workspace.Environment.Selection.PerformChanging(); using (Matrix matrix = new Matrix()) { matrix.Reset(); int width = Workspace.Document.Width; matrix.Translate(-((double)width / 2.0), 0, MatrixOrder.Append); matrix.Scale(-1.0, 1.0, MatrixOrder.Append); matrix.Translate((double)width / 2.0, 0, MatrixOrder.Append); Workspace.Environment.Selection.SetInterimTransform(matrix); Workspace.Environment.Selection.CommitInterimTransform(); } Workspace.Environment.Selection.PerformChanged(); Note that this flips it such that the left side of the canvas maps to the right side of the canvas. You could also easily make it so that the left side of the selection is mapped to the right side of the selection. So a selection concentrated at the upper-left of the canvas would stay in the upper-left of the canvas. 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...
suzuki Posted February 9, 2006 Share Posted February 9, 2006 I was wondering about the status of this feature request for flipping and/or rotating of selections. I couldn't find it in the bugs area. (Did I overlook it in v2.6RC1?) Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted February 10, 2006 Author Share Posted February 10, 2006 This feature is not in v2.6. Doesn't mean it won't be in a future release. 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...
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.