Geometry 関数
NSBundle
NSDictionary
NSFileManager
NSMutableAttributedString
NSNumber
NSScanner
NSString
NSTimer
Graphic 関数
NSApplication
NSBezierPath
NSCell
NSColor
NSCursor
NSCustomImageRep
NSDocument
NSDocumentController
NSDragging
NSEvent
NSFontManager
NSGraphicsContext
-アンチエイリアスを解除する
NSImage
NSMenu
NSOutlineView
NSPanel
NSPopUpButton
NSResponder
NSScrollView
NSString 追加
NSTableColumn
NSTableView
NSTextStorage
NSTextView
NSToolbar
NSView
NSWindow
NSWorkspace
その他
.nib ウィンドウ
Views パレット
クラス
インスタンス変数
メソッド
CFXML
Carbon Event
Carbon Graphics
Cocoa で日本語
メソッド
その他

- Application Kit-
NSGraphicsContext

Application Kit - NSGraphicsContext
アンチエイリアスを解除する
Keywords: antialias

Cocoa の特徴の一つは、きれいなアンチエイリアス。だけど、時にはうっとうしいときもあるよな。そんなとき、アンチエイリアスを解除する方法だ。NSGraphicsContext の setShouldAntialias: を使う。

Application Kit/NSGraphicsContext.h
- (void)setShouldAntialias:(BOOL)antialias;

これで、アンチエイリアスを設定したり、解除したりできるんだ。

(sample)
    NSGraphicsContext* gc = [NSGraphicsContext currentContext];
    [gc setShouldAntialias:NO];


[Home] [Download] [Archives] [BBS] [Cocoa Programming Tips 1001] [Core Foundation の秘密] [Safari Developer Center] [はじめてのブラウザのつくり方] [Sketch BP] [スクリーンセイバーを作ろう] [Objective-C 最適化] [Authorization API 完全理解] [Mac OS X Programming Books Review] [オブジェクト指向の言語比較論] [panther-dev]

mailto: mkino@xd5.so-net.ne.jp