• 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: 1 pixel wide lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1 pixel wide lines


  • Subject: Re: 1 pixel wide lines
  • From: stephane sudre <email@hidden>
  • Date: Thu, 4 Nov 2004 17:41:17 +0100


On Nov 4, 2004, at 5:31 PM, Joe Esch wrote:

Before you flame me, let me say that I've looked in the archives and found that questions about drawing 1 pixel wide [...]

2. If not, how do I do it? Am I going to have to somehow invert the view transform and figure out how to adjust the point coordinates so that the final transformed points end up in the center of a pixel? This seems like an awful lot of work for something that should be easy. For some reason, I don't see the problem with scrolling. I assume that the scrolling code must adjust the scroll amount to only scroll by even pixel amounts.

Concerning the narrowing, inflating line width, I'm not sure to understand the point that is preventing you to set the width of the line to be 1/zoom_ratio.`


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: 1 pixel wide lines
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: catching command-enter keyDown events in a table view
  • Next by Date: Re: catching command-enter keyDown events in a table view
  • Previous by thread: Scrolling of multiple NSTableViews
  • Next by thread: Re: 1 pixel wide lines
  • Index(es):
    • Date
    • Thread