函数原形void QImage::setPixel ( int x, int y, uint index_or_rgb ) 这个函数是不是就是在图像每个像素点设置值为 uint index_or_rgb的作用呢?这样就可以通过设置每个点的值来显示一幅图像了?
可是解释我没有看懂
If the image is a paletted image (depth() <= 8) and index_or_rgb >= numColors(), the result is undefined.
这是什么意思呀?
这个值应该是像素点x,y的值吧,我的图像是256色灰度图,那我这个值该怎么写呢?谢谢指点一下!
[ 此贴被XChinux在2006-09-06 08:38重新编辑 ]