• 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: Charles Jolley <email@hidden>
  • Date: Tue, 9 Oct 2001 07:47:21 -0500

Thanks to those that answered this. The lines draw perfectly now!

Cheers,
-Charles

On Tuesday, October 9, 2001, at 02:19 AM, John C. Randolph wrote:

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.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Re: Fuzzy Lines (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: Archiving, coding etc.
  • Next by Date: Re: Problem with TIFF alpha channel
  • Previous by thread: Re: Fuzzy Lines
  • Next by thread: NSMatrix Questions (was: Re: Another Table View Question)
  • Index(es):
    • Date
    • Thread