What is the fastest way to draw single pixels directly to the screen in an iPhone application?

后端 未结 4 1585
后悔当初
后悔当初 2021-01-03 04:21

I am looking the fastest way to draw thousands of individually calculated pixels directly to the screen in an iPhone application that preforms extremely well.

4条回答
  •  一生所求
    2021-01-03 04:48

    I would create a BMP the size of the view, add it to the view and draw into the BMP. Cocoa doesn't have any way to draw a single pixel to a view, other than faking it by using a line with a length of 1 pixel like this Question mentions.

提交回复
热议问题