Mailing Lists: Apple Mailing Lists

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

Drawing Thin Lines in Core Graphics



I'm trying to draw horizontal and/or vertical lines that are a single pixel wide into a Core Graphics context on the screen. I'm creating a path containing a line and stroking it. Unfortunately I don't seem to be able to draw a line any thinner than two pixels wide. If I specify a smaller stroke width the color of the line become lighter but it's still two pixels wide.

How do I get lines that are one pixel wide in CG?

Thanks,
Nick Nallick
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



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.