| Home 目次>ApplicationKit>NSGraphicsContext | |
currentContext
現在のスレッドの現在のグラフィックスコンテキストを返します
+(NSGraphicsContext *) currentContext
【返り値】 | |
| NSGraphicsContext * | グラフィックス・コンテキスト |
【解説】
現在のスレッドの現在のグラフィックスコンテキストを返します。
【例文】
NSGraphicsContext *currentContext = [NSGraphicsContext currentContext];
//Carbonで使うとき
CGContextRef myCGContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSGraphicsContext | 修正日2006.12.26 |