What I need to do to draw some shapes on retina display, defining actual screen pixels. I mean that I need that all lines will be 1 pixel width, and no antialiasing. And, if i write the the code:
CGContextMoveToPoint(context,0,0);
CGContextAddLineToPoint(context,0,959);
然后,显示器将从顶端左上层到最左侧最底层的六分之一,包括它。
If I understood well, I need to use CGContextScaleCTM. But there is not always the same regularity in coordinates. Sometimes there is offset on Y-axis, and sometimes no. I have tried to write some macro for converting the coordinates, but have confused at all. I know, that there is logical points and auto positioning stuff. But that is the point that I need to draw all the pixels manually, cause I m developing some util.