• 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: Fuzzy Lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fuzzy Lines


  • Subject: Re: Fuzzy Lines
  • From: "John C. Randolph" <email@hidden>
  • Date: Tue, 9 Oct 2001 00:19:07 -0700

On Tuesday, October 9, 2001, at 12:09 AM, Charles Jolley wrote:

Ok, this is a simple problem...but I can't seem to find an answer. I am trying to draw a single pixel horizontal line. Sometimes, depending on where it is drawn on the screen, it is a crisp single pixel line other times it is very fuzzy.
Any ideas? How do I guarantee that the line will always draw crisp?

Draw it from the centers of the pixels. A line from (10.0, 10.0) to (20.0, 10.0) lands exactly between the pixels. A line from (10.0, 10.5) to (20.0, 10.5) runs through the center of the pixels.

-jcr


"I fear all we have done is to awaken a sleeping giant and fill him with a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.


  • Follow-Ups:
    • Re: Fuzzy Lines
      • From: Charles Jolley <email@hidden>
References: 
 >Fuzzy Lines (From: Charles Jolley <email@hidden>)

  • Prev by Date: Re: Cocoa Newbie
  • Next by Date: NSMatrix Questions (was: Re: Another Table View Question)
  • Previous by thread: Fuzzy Lines
  • Next by thread: Re: Fuzzy Lines
  • Index(es):
    • Date
    • Thread