Ecere SDK/eC Forums http://ecere.org/community/ Print view |
|
想用作图像处理,求助 http://ecere.org/community/viewtopic.php?f=30&t=142 |
Page 1 of 1 |
Author: | swordrong [ Sat Jun 04, 2011 10:56 am ] |
Post subject: | 想用作图像处理,求助 |
Dear jerome: 我想用picture打开一幅图像(上次您已解答),把每个像素值读取出来,实现一定算法后又保存为图像文件(想直接用,不是用C重新编写打开图像的代码)用picture可以吗?另我用surface显示图像时,显示没问题,想得到每个像素值,但surface.getpixel(x,y)老出错,不知何故?能有好办法吗? 盼您回音 yours swordrong |
Author: | jerome [ Sat Jun 04, 2011 12:26 pm ] |
Post subject: | Re: 想用作图像处理,求助 |
Dear swordrong, I'm assuming you want to do something like this: Code: Select all
Jerome |
Author: | jerome [ Sat Jun 04, 2011 12:30 pm ] |
Post subject: | Re: 想用作图像处理,求助 |
You could also do it with a surface and GetPixel/PutPixel, but that would be slower. However, it would handle multiple pixel formats so you wouldn't need to convert it after loading. Code: Select all
|
All times are UTC-05:00 | Page 1 of 1 |
Powered by phpBB® Forum Software © phpBB Limited |