Get all pixel information of an image efficiently

后端 未结 2 682
囚心锁ツ
囚心锁ツ 2020-12-03 20:15

I made a program to get all image pixel RGB color codes from picture. Basically, it sets y position on constant and changes x position zero to width and also y by looping. <

2条回答
  •  一向
    一向 (楼主)
    2020-12-03 20:28

    Getting pixel information shouldn't take that long. Can you log the time it takes myimage() to run? The slowness might be somewhere else. Also try removing the line that begins with textBox2.AppendText in myimage() and see how fast it runs then.

提交回复
热议问题