faqts : Computers : Programming : Application Frameworks : Macintosh : Cocoa

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 7 people (86%) answered Yes
Recently 6 of 7 people (86%) answered Yes

Entry

Is there a way to draw a single pixel line in Cocoa?

Apr 28th, 2002 22:26
Christopher Holland,


Yes. All you have to do is move your line 0.5 pixels and it will 
draw as an unaliased line. The Cocoa drawing system is based on a grid 
that is between the pixel coordinates and it is antialiasing your line 
because of this.