Reputation: 311
I'd like to change rotation and offset of a shape multiple times. I need to "freeze" transformations before applying new rotation and offset, so that when I change offsetX, the shape will move horizontally, not along the X axis of a shape at an angle. Is there a way to do that?
I'm working on a simple editor where the user can crop the image and rotate it. When the user crops the image, the pivot point should be at the center of a crop region (offset). Previous rotations and transforms must be preserved, meaning that even if we change the offset of an image, it'll be rotated at the same angle and will just shift horizontally of vertically relative to the scene (depending on offsetX and offsetY values).
Upvotes: 1
Views: 61