UIImage *origianlImage = [UIImage imageNamed:@"source.png"];
UIImage *flippedImage = [UIImage imageWithCGImage:originalImage.CGImage
scale:1.0
orientaion:UIImageOrientationLeftMirrored];
orientaion 종류
typedef enum {
UIImageOrientationUp, // default orientation
UIImageOrientationDown, // 180 deg rotation
UIImageOrientationLeft, // 90 deg CCW
UIImageOrientationRight, // 90 deg CW
UIImageOrientationUpMirrored, // as above but image mirrored along other axis. horizontal flip
UIImageOrientationDownMirrored, // horizontal flip
UIImageOrientationLeftMirrored, // vertical flip
UIImageOrientationRightMirrored, // vertical flip
} UIImageOrientation;
'Dev > iOS' 카테고리의 다른 글
[Objective-C] UIView 각도 변경하기 (0) | 2011.09.27 |
---|---|
[Objective-C] UIImage 흑백으로 변경하기(gray) (0) | 2011.09.27 |
[Objective-C] instance 의 class 종류를 확인하는 메소드-isKindOfClass (0) | 2011.08.30 |
[XCode4] SVN Repository 등록하기 (0) | 2011.08.03 |
[iOS] 아이폰 바탕화면 아이콘에 숫자 표시하기 (0) | 2011.08.02 |