alpha
カラーパネルの現在のアルファ値(透明度)を返します
解説
カラーパネルの現在のアルファ値(透明度)を返します
返り値
( float )
アルファ値0.0-1.0
引数
フレームワーク
ApplicationKit
クラス
NSColorPanel
Instance Methods
使用可能
10.0
参照
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSColorPanel *cPanel = [NSColorPanel sharedColorPanel]; [cPanel setShowsAlpha:YES]; [[NSApplication sharedApplication] orderFrontColorPanel:cPanel]; NSLog([NSString stringWithFormat:@"%.1f",[cPanel alpha]]); } @end