Skip to content
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

Rotation of image without changing the frame of Crop Rect from Landscape to portrate #3

Open
andre96125 opened this issue Mar 27, 2017 · 2 comments

Comments

@andre96125
Copy link

Goals

I want to rotate image but i don't want to change the form of crop rect as of now it's changing the frame of Crop rect.

Expected Results

Image should rotate but Crop Frame should remain same as it was before rotation. Like Crop frame is 4:3 and we are rotation image, in this case, image should rotate but frame should remain in 4:3 it should not change to 3:4.

@paleicikas
Copy link

Any news?

@paleicikas
Copy link

hack for iOS:

var frame = CGRect.Empty;
NSTimer.CreateRepeatingScheduledTimer (TimeSpan.FromSeconds (1), delegate {

    if (frame == CGRect.Empty)
        frame = viewController.CropView.CropBoxFrame;

    if (viewController.CropView.CropBoxFrame.Equals(frame))
       return;

    viewController.CropView.SetAspectRatio(
        new CGSize(YOURWIDTH, YOURHEIGHT), 
        true
    );
}); 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants