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

Didnot find any parameter which supports the cropping of image diagonally. #7

Open
ajaysharmalike opened this issue Mar 27, 2012 · 1 comment

Comments

@ajaysharmalike
Copy link

Hi,

I looked out the code & tried with several ways. though the cropping is supported in the whole image i,e By passing the origin & size parameters but I didn't find where user can crop the image like a Right Angle Triangle , means cropping at an angle of 45 *.
  • (UIImage *)imageToFitSize:(CGSize)fitSize method:(MGImageResizingMethod)resizeMethod;

This method doesnot support cropping if user wish to have the partial image since one wo'nt be able to pass the paramters other than Height ,width & Origin.

Required Output :

   -------
   |\      |
   |  \    |
   |    \  |
   |      \|
   -------
@mattgemmell
Copy link
Owner

I'm not sure what you mean, but I assume you mean that you want to crop an image to fit a given diagonal. Surely you can just do a pre-calculation to create a suitable size for that?

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