change comment
This commit is contained in:
@@ -45,7 +45,7 @@ QPixmap GetImageFormDcmFile(const QString& filepath, int wl, int ww, unsigned sh
|
|||||||
//RGB color image
|
//RGB color image
|
||||||
else{
|
else{
|
||||||
uchar* data = (uchar*)sdcmImage->getOutputData(8);//按8位的位宽取数据
|
uchar* data = (uchar*)sdcmImage->getOutputData(8);//按8位的位宽取数据
|
||||||
QImage image(data, sdcmImage->getWidth(), sdcmImage->getHeight(), QImage::Format_RGB888);//使用8位深度的灰度图做输出
|
QImage image(data, sdcmImage->getWidth(), sdcmImage->getHeight(), QImage::Format_RGB888);//使用8位深度的rgb图做输出
|
||||||
if (sdcmImage->getHeight() > 100) image = image.scaledToHeight(100);
|
if (sdcmImage->getHeight() > 100) image = image.scaledToHeight(100);
|
||||||
QPainter p(&pixmap);
|
QPainter p(&pixmap);
|
||||||
p.drawPixmap(50 - image.width()/2, 50-image.height()/2, QPixmap::fromImage(image));
|
p.drawPixmap(50 - image.width()/2, 50-image.height()/2, QPixmap::fromImage(image));
|
||||||
|
|||||||
Reference in New Issue
Block a user