Re: How do you draw a single pixel line?
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.