Unsolved QImage scale 16bit png image wrong
-
Hello! I have a series of 16 bits png files and I want to show them by my own item.
The png file is from a dicom file in network.
I write a class to create my own qml item like Image.class LiveImage : public QQuickPaintedItem
When I want to resize my image, the image lost half message.
QImage image = imagesrc.scaled(600, 600); setImage(image); update();
How shall I do?
I have tried read pixelcolor of png and create a new size QImage, write mapped pixelcolor to the new QImage object. But it has two "for" loop , so it takes so much time. -
-
@SGaist Thank u, SGaist!By the way, do QDcm or QtDcm apply for Android or Ios? I want to show them in mobile phone.
I haven't found related message from their home page yet. -
@lightwind said in QImage scale 16bit png image wrong:
do QDcm or QtDcm apply for Android or Ios?
Build them for Android/iOS.
-
@jsulm Thank you! I'll have a try. :)