Re: Line Drawing problem
Re: Line Drawing problem
- Subject: Re: Line Drawing problem
- From: Fritz Anderson <email@hidden>
- Date: Mon, 04 Jul 2011 09:00:58 -0500
On 4 Jul 2011, at 7:17 AM, Dale Satterfield wrote:
> Well, hopefully that code is correct since it is the unmodified code from the book.
The code you are looking to is intended as an example of how to prepare a Mac OS X framework, not as a graphics tutorial. The source had to fit into a reasonably-sized book, and that entailed a sacrifice in drawing performance.
In particular, I scaled the drawing view to make the graph fit. As the source data's aspect ratio departs from 1, lines perpendicular to the compressed axis will be compressed to less than a full pixel (actually, point) width, and get antialiased to gray.
You should find other examples.
— F
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden