bitmapImageRepForCachingDisplayInRect:
レシーバーの矩形の現在のコンテキストのキャッシュのビットマップを返します
-(NSBitmapImageRep *)bitmapImageRepForCachingDisplayInRect:(NSRect)aRect:
解説
レシーバーの矩形の現在のコンテキストのキャッシュのビットマップを返します。
すべての子孫を含む。
返り値
( NSBitmapImageRep * )
なし
引数
( NSRect )aRect
フレームワーク
ApplicationKit
クラス
NSView
Instance Methods
使用可能
10.4
参照
-cacheDisplayInRect:toBitmapImageRep:
例文
- (IBAction)myAction:(id)sender { NSBitmapImageRep *bmpRep=[myView bitmapImageRepForCachingDisplayInRect:NSMakeRect(0,0,100,100)]; NSLog(@"bit / pixel:%d",[bmpRep bitsPerPixel]); }