How do I draw a point using Core Graphics?

前端 未结 7 1969
别那么骄傲
别那么骄傲 2020-12-03 07:57

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

相关标签:
7条回答
  • 2020-12-03 08:38
    CGContextFillRect(context, CGRectMake(x,y,1,1));
    
    0 讨论(0)
提交回复
热议问题