01-23-2013 06:21 AM
01-23-2013 06:50 AM
In case that everything works on my side, I'd suggest the following:
1. Did you really converted your with QImage::convertToFormat(QImage::Format_ARGB32_Prem
2. As far as I remember I had some problems with PNG images which had some 'background color' property. I'm not sure, what is it, but if I uncheck "Save background color" option in GIMP - then resulting PNG file can be read and displayed without any problems.
3. You can check returned value of qAlpha(QImage:
ixel(x,y)) - is it really 0 (fully transparent)?
01-23-2013 08:55 PM
As long as its ARGB32_premultiplied, this is how I did it:
void imageScribble::updateImage() {
const QImage finalImage = m_qimage.rgbSwapped();
const bb::ImageData imageData = bb::ImageData::fromPixels(finalImage.bits(),
// bb::PixelFormat::RGBX, finalImage.width(), finalImage.height(),
bb::PixelFormat::RGBA_Premultiplied, finalImage.width(), finalImage.height(),
finalImage.bytesPerLine());
m_image = bb::cascades::Image(imageData);
emit imageChanged();
}
That works fine for me.
01-27-2013 09:23 PM
01-28-2013 02:49 AM
hi, i2mobi,
No, I didn't see such error ever. Maybe this is because i didn't try this on simulator - I'm using "BB10 Alpha B" device for testing
01-28-2013 03:01 AM
01-28-2013 04:05 AM
To chris_chrono,
I've just uploaded an example of how i did it here: https://github.com/mnosov/testroundprogress
You can try this example and check if it works for you
01-28-2013 04:23 AM
01-28-2013 04:51 AM
Can you try to replace my outer_progress_bar.png with your file and try it on my example? If problem exists, can you share the example png file?
01-28-2013 04:52 AM
thanks your replay