我用如下方式显示内存中的像素数据
QImage myImage((uchar*)pData,nCols,nRows,QImage::Format_RGB16);
其中pData是数据部分,nCols,nRows分别是图像高,宽;QImage::Format_*我试了所有参数都不能正常显示,显示出来的图像会发绿。
要显示的图像的信息如下:
compression----none
ImageType-------GrayScale
Photometric------MONOCHROME2
SamplesPerPixel-------1
Rows----------512
Cloumns------512
BitsAlloctated-----------16
BitsStored---------------12
HighBit--------------------11
BitsPerPixel-------------16
请问怎么样才能正常显示,或者告诉我为什么我显示出来的会发绿,原因出在哪里了?
感激不尽
[ 此帖被mpx1983在2009-08-06 14:33重新编辑 ]