06-06-2014 11:07 AM
Hi, I have a QImage that I wish to use in an ImageView. What I did was converted it into a bb::ImageData and then create a Image using that ImageData. The code is given below.
QImage imageQ; imageQ.load("app/native/assets/images/bg.png"); imageData = bb::ImageData::fromPixels(imageQ.bits(), bb::PixelFormat::RGBX, canvasWidth, canvasHeight, imageQ.bytesPerLine()); image = ImageView::create(). image(Image(imageData));
But the problem is that the image looks inverted. The original image and the image when converting from QImage to Image are at this public DropBox folder.
Solved! Go to Solution.
06-07-2014 04:24 AM