initWithBitmapImageRep:
ビットマップ画像内容からCI画像を初期化します
-(id)initWithBitmapImageRep:(NSBitmapImageRep *)bitmapImageRep:
解説
ビットマップ画像内容からCI画像を初期化します。
返り値
( id )
オブジェクト()
引数
( NSBitmapImageRep * )bitmapImageRep
フレームワーク
ApplicationKit
クラス
CIImage Additions
Instance Methods
使用可能
10.4
参照
例文
//バンドル NSBundle *bundle = [NSBundle bundleForClass:[self class]]; //ビットマップデータを用意 NSData *shadingBitmapData = [NSData dataWithContentsOfFile:[bundle pathForResource:@"theImage" ofType:@"tiff"]]; // NSBitmapImageRep *shadingBitmap = [[[NSBitmapImageRep alloc] initWithData:shadingBitmapData] autorelease]; //入力シェード画像 inputShadingImage = [[CIImage alloc] initWithBitmapImageRep:shadingBitmap];