PintaProject / Pinta

Simple GTK# Paint Program
http://www.pinta-project.com/
MIT License
1.74k stars 267 forks source link

Handles follow moved selection and resize on rotate, and... #802

Open NoSkillPureAndy opened 1 month ago

NoSkillPureAndy commented 1 month ago

constraining with shift preserves aspect ratio.

cameronwhite commented 1 month ago

It's been a while since I looked at this branch so I'll need to refresh my memory on what my thoughts were for future changes :) I think I wanted to use Cairo.Matrix.GetComponents() to decompose the transform into its rotation / scale components and then rotate the handle along with the rotation

One other note is that the selection tools also use the rectangle handle, so having the ability to constrain to a square selection is still needed for the current behaviour (but probably can share most of the code since the aspect ratio is then just 1:1)