kernelsWithString:
ひとつ以上のカーネルルーチンからCIKernelオブジェクトを作ります
+(CIKernel *)kernelsWithString:(NSString *)s:
解説
ひとつ以上のカーネルルーチンからCIKernelオブジェクトを作ります。
返り値
( CIKernel * )
カーネル
引数
( NSString * )s
フレームワーク
QuartzCore
クラス
CIKernel
Class Methods
使用可能
10.4
参照
例文
NSBundle *bundle = [NSBundle bundleForClass: [self class]]; //カーネルコードの場所を指定 NSString *code = [NSString stringWithContentsOfFile: [bundle pathForResource: @"MyHazeRemoval" ofType: @"cikernel"]]; NSArray *kernels = [CIKernel kernelsWithString: code];