Search code examples
iphoneiosmacosquartz-2d

Quartz 2D -Drawing a point


I know that drawing a point by using drawing a line method in Quartz 2D is

CGContextMoveToPoint(context,x,y-0.5f);
CGContextAddLineToPoint(context,x,y+0.5f);

Is there any other possible way to draw a point using Quartz? I meant, some direct way of doing so?


Solution

  • CGContextFillRect(context, CGRectMake(x,y,1,1));