CGContextRef context = UIGraphicsGetCurrentContext();
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"imagefile.bmp" ofType:nil];
UIImage *img = [UIImage imageWithContentsOfFile:imagePath];
CGImageRef image = CGImageRetain(img.CGImage);
CGRect imageRect;
imageRect.origin = CGPointMake(15.0, 15.0);
imageRect.size = CGSizeMake(25.0, 25.0);
CGContextDrawImage(context, imageRect, image);
'프로그램 경험 > iOS' 카테고리의 다른 글
[iPhone] 아이폰 자동 잠금 해제하기 (0) | 2011.08.01 |
---|---|
[iPhone] UIColor 색상 각 구성데이터 가져오기 (0) | 2010.12.13 |
[iPhone] UIView 캡쳐 (0) | 2010.11.29 |
[iPhone] expected specifier-qualifier-list before 'virtual' (0) | 2010.11.19 |
[iPhone] TableView의 전체 셀 접근하기 & 선택표시 사라지기 (0) | 2010.11.05 |