• 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: Paul Fox <email@hidden>
  • Date: Thu, 15 Aug 2002 20:35:42 +0100

> > 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.
>

Are you guessing at the answer or do you know this works for sure?

I tried 0.25, 0.20, 0.0 and same results each time.

thanks

>
> 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.

  • Follow-Ups:
    • Re: How do you draw a single pixel line?
      • From: Dietmar Planitzer <email@hidden>
  • Prev by Date: Re: Setting a class' action
  • Next by Date: PB question (2 targets, depending on shared code and each other)
  • Previous by thread: Re: How do you draw a single pixel line?
  • Next by thread: Re: How do you draw a single pixel line?
  • Index(es):
    • Date
    • Thread