-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rotate angle of image layer #102
Comments
Hi, there is this property:
But part of the problem is that the image may be distorted, so it's not clear what the rotation actually is. Would you average the offset of positions of all four corners? |
@meygh Simple algebra here, I guess. First off, find the pivot by the intersection of both the diagonals formed by the corners (exposed). Actually, we have a method called |
Uploaded to GCI Dashboard. |
Published |
* ADD: getAngle() method Resolves #102 * IMPROVE: getAngle() method The old implementation of getAngle() method would show the incorrect angle when we flip the image by dragging the 2 top corners below the bottom 2 corners. This change resolves it.
Why was this opened again @sashadev-sky |
The method accepts an angle in degrees and sets element's rotation to be that angle. Resolves #102
@SidharthBansal @VladimirMikulic was this one definitely published on the dashboard and not just "Set degrees of rotation..." I can't find it! Just wanted to double check |
@VladimirMikulic can check and get it approved from me asap. :-) |
@sashadev-sky this one was published on GCI dashboard and I claimed points for it. @SidharthBansal thanks you've approved them already :) |
ok perfect |
We are preparing to participate in Google Code-in, and have reserved this issue for participants in GCI - but we'd love to have your help with another one! Please check out https://code.publiclab.org to see more
Hello
How do I can get / set rotation degree for an image layer.
Something like: image.getRotate() / image.setRotate(45)
I can't find anything, please help me.
Thanks
The text was updated successfully, but these errors were encountered: