Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NEWBIE] how to.. ? drawing problems !!



At 3:39 -0700 28/7/01, John C. Randolph wrote:
In the default coordinate system the integer values are between the pixels, so if you draw a line from (10,10) to (10,20), the line touches the pixels on both sides. If you draw from (10.5, 10), to (10.5, 20), the line should fall exactly in the center of the pixels.

Give it a try.

Thank for your quick response; indeed it works, even if I was pretty sure to have tried it before sending the e-mail...

I still think that the strokeLine bahavior is a bug, since the lineWidth should produce a line of no more than LineWidth, no matter where the origin points are, even when the antiAliasing is off...

However, when a bug is documented, it is called "feature", so I can't complain too much.

Thank you.

Best regards, Tom ;-{))


--
--------------------------------------------------------------------------
Ing. Tommaso Pecorella

snail-mail: e-mail :
via del Pergolino 8/a mailto:email@hidden
50139 Firenze - ITALY

RSA Key fingerprint = 232A D084 AD2F 7815 3D44 AFF0 AA52 A3AA
--------------------------------------------------------------------------


References: 
 >Re: [NEWBIE] how to.. ? drawing problems !! (From: "John C. Randolph" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.