drawImage:atPoint:fromRect:
コンテキストの指定位置にトリミングしたCIImageを描画します
-(void)drawImage:(CIImage *)im: atPoint:(CGPoint)p: fromRect:(CGRect)src:
解説
コンテキストの指定位置pにトリミングしたCIImageを描画します。
返り値
( void )
なし
引数
( CIImage * )im
( CGPoint )p
( CGRect )src
フレームワーク
QuartzCore
クラス
CIContext
Instance Methods
使用可能
10.4
参照
例文
CIContext* ciContext = [CIContext contextWithCGContext:(CGContextRef)[[NSGraphicsContext currentContext] graphicsPort] options:nil]; //宛先矩形を計算 CGPoint imagePoint = CGPointMake(30,30); CGRect imageRect = CGRectMake(0,0,100, 100); //コンテキストに描画 [ciContext drawImage:inputImage atPoint:imagePoint fromRect:imageRect];