This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script_line1 = use strict | |
script_line2 = use warnings | |
[Interrupt] | |
[FancyPrompt] | |
[DataDumper] | |
[Colors] | |
[ReadLine] | |
[Hints] | |
[Packages] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(UIImage*)image:(UIImage*)image scaleAndRotateImageToMaxResolution:(int)resolution | |
{ | |
int kMaxResolution = resolution; // Or whatever | |
CGImageRef imgRef = image.CGImage; | |
CGFloat width = CGImageGetWidth(imgRef); | |
CGFloat height = CGImageGetHeight(imgRef); | |