macOS/iOS API解説

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

目次

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]);
}