-
Notifications
You must be signed in to change notification settings - Fork 469
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
Rectangle mode avoidEmptySpaceAroundImage not working #38
Comments
Hi @dyadenkor, Rectangle mode is the custom mode. To support the rotation when Then |
Thanks, will try and will tell you the result. Thanks! |
I'he tried. https://www.dropbox.com/s/laralbs0d0fewjm/Screenshot%202015-03-13%2021.33.15.png?dl=0 What I am doing wrong? #pragma mark - Action handling
#pragma mark - RSKImageCropViewControllerDataSource // Returns a custom rect for the mask.
// Returns a custom path for the mask.
// Returns a custom rect in which the image can be moved.
|
You should calculate and return the correct movement rect according to the current values of the parameters, such as the angle of rotation. |
We should include rotation in sample app, I think not many understand what movement rect is. |
I understand what is this, but I can't understand how could I calculate it. I saw many calculations in sources, could you explain, please in words these processes. Thanks :) |
@dyadenkor, you can read about these processes here @pronebird, what kind of example would you add? |
Hi gents, I've tried rectangle mode (for quick testing I've used square mode, but change this in source code CGSize maskSize = CGSizeMake(length, length * 0.75));
And here the result https://www.dropbox.com/s/lp2yuhx0lnzoubu/Screenshot%202015-03-13%2018.05.19.png?dl=0
avoidEmptySpaceAroundImage not working with rectangle mode for me, but perfect with square.
Or how should I create rectangle mode then? Thanks.
The text was updated successfully, but these errors were encountered: