I see APIs in Quartz for drawing lines and circles. But all I want to do is to specify the (x,y) cartesian coordinate to color a pixel a particular value. How do I do that
Draw a very small ellipse/circle and fill it!
CGContextAddEllipseInRect(Context,(CGRectMake (x_dot, y_dot, 3.0, 3.0)); CGContextDrawPath(Context, kCGPathFill); CGContextStrokePath(Context);
I am using this code to create a small dot (3x3 pixels) in a dotted music note.