Skip to content

Commit

Permalink
Updated copyright, fixed scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Schmitt committed Apr 1, 2014
1 parent b1480ac commit 6a85baf
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ImagePickerCropDemo/FMSAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ImagePickerCropDemo
//
// Created by Frank Schmitt on 4/1/14.
// Copyright (c) 2014 Frank Schmitt. All rights reserved.
// Copyright (c) 2014 Frank Schmitt. See LICENSE.
//

#import <UIKit/UIKit.h>
Expand Down
2 changes: 1 addition & 1 deletion ImagePickerCropDemo/FMSAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ImagePickerCropDemo
//
// Created by Frank Schmitt on 4/1/14.
// Copyright (c) 2014 Frank Schmitt. All rights reserved.
// Copyright (c) 2014 Frank Schmitt. See LICENSE.
//

#import "FMSAppDelegate.h"
Expand Down
2 changes: 1 addition & 1 deletion ImagePickerCropDemo/FMSViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ImagePickerCropDemo
//
// Created by Frank Schmitt on 4/1/14.
// Copyright (c) 2014 Frank Schmitt. All rights reserved.
// Copyright (c) 2014 Frank Schmitt. See LICENSE.
//

#import <UIKit/UIKit.h>
Expand Down
2 changes: 1 addition & 1 deletion ImagePickerCropDemo/FMSViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ImagePickerCropDemo
//
// Created by Frank Schmitt on 4/1/14.
// Copyright (c) 2014 Frank Schmitt. All rights reserved.
// Copyright (c) 2014 Frank Schmitt. See LICENSE.
//

#import "FMSViewController.h"
Expand Down
2 changes: 1 addition & 1 deletion ImagePickerCropDemo/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ImagePickerCropDemo
//
// Created by Frank Schmitt on 4/1/14.
// Copyright (c) 2014 Frank Schmitt. All rights reserved.
// Copyright (c) 2014 Frank Schmitt. See LICENSE.
//

#import <UIKit/UIKit.h>
Expand Down
2 changes: 1 addition & 1 deletion ImagePickerCropDemoTests/ImagePickerCropDemoTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ImagePickerCropDemoTests
//
// Created by Frank Schmitt on 4/1/14.
// Copyright (c) 2014 Frank Schmitt. All rights reserved.
// Copyright (c) 2014 Frank Schmitt. See LICENSE.
//

#import <XCTest/XCTest.h>
Expand Down
2 changes: 1 addition & 1 deletion UIImage+ImagePickerCrop.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ImagePickerCropDemo
//
// Created by Frank Schmitt on 4/1/14.
// Copyright (c) 2014 Frank Schmitt. All rights reserved.
// Copyright (c) 2014 Frank Schmitt. See LICENSE.
//

#import <UIKit/UIKit.h>
Expand Down
4 changes: 2 additions & 2 deletions UIImage+ImagePickerCrop.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ImagePickerCropDemo
//
// Created by Frank Schmitt on 4/1/14.
// Copyright (c) 2014 Frank Schmitt. All rights reserved.
// Copyright (c) 2014 Frank Schmitt. See LICENSE.
//

#import "UIImage+ImagePickerCrop.h"
Expand Down Expand Up @@ -38,7 +38,7 @@ + (UIImage *)croppedImageWithImagePickerInfo:(NSDictionary *)info {
CGRect rotatedCropRect = CGRectApplyAffineTransform(cropRect, rotateTransform);

CGImageRef croppedImage = CGImageCreateWithImageInRect([originalImage CGImage], rotatedCropRect);
UIImage *result = [UIImage imageWithCGImage:croppedImage scale:2.0 orientation:originalImage.imageOrientation];
UIImage *result = [UIImage imageWithCGImage:croppedImage scale:[UIScreen mainScreen].scale orientation:originalImage.imageOrientation];
CGImageRelease(croppedImage);

return result;
Expand Down

0 comments on commit 6a85baf

Please sign in to comment.