macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

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];