Mac下NSBezierPath绘制线条stroke宽度不正确的问题

遇到的问题是绘制的1像素,但是实际显示出来是0.5像素,查阅资料,有如下可以借鉴的解决办法,记录供以后备忘:

https://stackoverflow.com/questions/33191813/nsbezierpath-with-rounded-rect-does-not-have-smooth-corners

 

https://stackoverflow.com/questions/8016618/how-to-get-a-1-pixel-line-with-nsbezierpath

你可能感兴趣的:(MacOS开发,mac,NSBezierPath,stroke)