NSBestDepth
指定した引数に適切なウインドウ色深度を返します
NSWindowDepth NSBestDepth ( NSString * colorSpace , int bps , int bpp , BOOL planar , BOOL * exactMatch );
解説
指定した引数に適切なウインドウ色深度を返します。
【colorSpace】色空間名
【bps】ビット/サンプル
【bpp】ビット/ピクセル
【planar】
【exactMatch】
返り値
引数
( NSString * )colorSpace
( int )bps
( int )bpp
( BOOL )planar
( BOOL * )exactMatch
フレームワーク
ApplicationKit
クラス
NSBestDepth
Function
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { BOOL extraMatch; NSWindowDepth *dpt = NSBestDepth(@"NSCalibratedRGBColorSpace",100,100,YES,&extraMatch); NSLog([NSString stringWithFormat:@"depth = %d",dpt]); NSLog(NSColorSpaceFromDepth(dpt)); } @end