Re: Quartz 2d drawing problems
Re: Quartz 2d drawing problems
- Subject: Re: Quartz 2d drawing problems
- From: Christopher Holland <email@hidden>
- Date: Fri, 3 May 2002 09:43:38 -0500
You will need to translate all of your coordinates by 0.5 units.
The reason for this is that Quartz coordinate grid falls between the
pixels so it is antialiasing to each of the next-door-neighbors.
This can also be found at the Cocoa FAQTS (just getting started...please
add to it)
http://www.faqts.com/knowledge_base/index.phtml/fid/1088/
On Wednesday, May 3, 102, at 09:30 AM, Freddie Tilley wrote:
Problem:
I'm experimenting with the sketch example to draw rectangles and lines,
but the problem is that quartz always antialiases everything, even
standard straight lines.
I'm trying to make sketch draw rectangles black and only 1 pixel wide,
but when I set the line thickness to 1.0 and the color to black I get a
gray rectangle with a line thickness of about 3 pixels.
If I turn off antialiasing for the context and then set the
linethickness to 1.0 I get a black rectangle but the linethickness is
still about 3 pixels wide even if I move the slider to below 1.0
I'm trying to get the same result as in drawing rects with Omnigrafle,
black and 1 pixel wide
Is there something I'm missing???
Freddie Tilley
_______________________________________________
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.
_______________________________________________
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.