• 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: How do you draw a single pixel line?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you draw a single pixel line?


  • Subject: Re: How do you draw a single pixel line?
  • From: Dietmar Planitzer <email@hidden>
  • Date: Thu, 15 Aug 2002 20:35:26 +0200

> From: Paul Fox <email@hidden>
>
> Trying to tidy up my app...
>
> How does one draw a single pixel line?
>
> Specifically, I know about anti-aliasing and how to draw a
> 1-pixel wide line if the line is purely horizontal or vertical
> (add 0.5 to the x,y co-ords etc). But what if I have a diagonal line?
>
> If I turn off anti-aliasing a pure diagonal line is 3-4 pixels wide
> (all of the same color).
>
> Is this a simple maths geometry question or is it more than that?


Try reducing the line width to 0.25 or below.


Regards,

Dietmar Planitzer
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How do you draw a single pixel line? (From: Paul Fox <email@hidden>)

  • Prev by Date: Re: Drawing antialiased text
  • Next by Date: Re: [newbie] Questions about NSTask and GUI/Shell (urgent help needed)
  • Previous by thread: How do you draw a single pixel line?
  • Next by thread: Re: How do you draw a single pixel line?
  • Index(es):
    • Date
    • Thread