macOS/iOS API解説

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

目次

registerFilterName:constructor:classAttributes:

カスタムフィルタを登録します
+(void)registerFilterName:(NSString *)name:
             constructor:(id)anObject:
             classAttributes:(NSDictionary *)attributes:

解説

カスタムフィルタを登録します。

返り値

( void )

なし

引数

( NSString * )name
( id )anObject
( NSDictionary * )attributes

クラス

CIFilter

Class Methods

使用可能

10.4

参照

例文

    [CIFilter registerFilterName: @"MyHazeRemover"  constructor: self
        classAttributes: [NSDictionary dictionaryWithObjectsAndKeys:

        @"Haze Remover",                       kCIAttributeFilterDisplayName,

        [NSArray arrayWithObjects:
            kCICategoryColorAdjustment, kCICategoryVideo, kCICategoryStillImage,
            kCICategoryInterlaced, kCICategoryNonSquarePixels,
            nil],                              kCIAttributeFilterCategories,

        nil]];