createCGImage:fromRect:
CIImageと矩形でCGImageを返します
-(CGImageRef)createCGImage:(CIImage *)im:
fromRect:(CGRect)r:
解説
CIImageと矩形でCGImageを返します。
返り値
( CGImageRef )
なし
引数
( CIImage * )im
( CGRect )r
フレームワーク
QuartzCore
クラス
CIContext
Instance Methods
使用可能
10.4
参照
例文
CIContext* ciContext = [CIContext contextWithCGContext:(CGContextRef)[[NSGraphicsContext currentContext] graphicsPort] options:nil]; //宛先矩形を計算 CGRect imageBounds = [image extent]; CGImageRef testImageRef = [ciContext createCGImage:inputImage fromRect:imageBounds]; printf("-------------------------------------\n"); CFShow(testImageRef); printf("-------------------------------------\n");