Skip to content

Instantly share code, notes, and snippets.

@jlcampana
Created August 24, 2012 06:16
Show Gist options
  • Save jlcampana/3446442 to your computer and use it in GitHub Desktop.
Save jlcampana/3446442 to your computer and use it in GitHub Desktop.
UIImage+Extensions.h
//
// UIImage-Extensions.h
//
// Created by Hardy Macia on 7/1/09.
// Copyright 2009 Catamount Software. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface UIImage (CS_Extensions)
- (UIImage *)imageAtRect:(CGRect)rect;
- (UIImage *)imageByScalingProportionallyToMinimumSize:(CGSize)targetSize;
- (UIImage *)imageByScalingProportionallyToSize:(CGSize)targetSize;
- (UIImage *)imageByScalingToSize:(CGSize)targetSize;
- (UIImage *)imageRotatedByRadians:(CGFloat)radians;
- (UIImage *)imageRotatedByDegrees:(CGFloat)degrees;
@end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment