• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Line Drawing problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Line Drawing problem (From: Dale Satterfield <email@hidden>)
 >Re: Line Drawing problem (From: Jens Alfke <email@hidden>)
 >Re: Line Drawing problem (From: Dale Satterfield <email@hidden>)
 >Re: Line Drawing problem (From: Jens Alfke <email@hidden>)
 >Re: Line Drawing problem (From: Dale Satterfield <email@hidden>)

  • Prev by Date: Re: Line Drawing problem
  • Next by Date: Re: How Do I get informed when -showHelp: has been called?
  • Previous by thread: Re: Line Drawing problem
  • Next by thread: Re: How to resolve bulk warning "Creating selector for nonexistent method ..."?
  • Index(es):
    • Date
    • Thread