Mac OS Cocoa: Draw a simple pixel on a canvas

后端 未结 8 663
悲哀的现实
悲哀的现实 2021-02-02 01:21

I wish I would find an answer for this. I have searched and searched and couldn\'t the right answer. Here is my situation:

In a Mac OS Cocoa Application, I want to draw

8条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 01:38

    Maybe I am misunderstanding the question, but Quartz has the ability to fill rectangles:

    void CGContextFillRect (CGContextRef c, CGRect rect);
    

提交回复
热议问题