You are not logged in.

1

Friday, April 19th 2013, 12:24pm

Not able to create transparent image using QPAinter/Qimage

Hi,

I have posted my question on http://stackoverflow.com/questions/15908…circle-using-qt ,trie that but didn't work. I'm working in Blackberry cascades(c++). Want to set a transparent image and then draw an arc over it.Please can somebody show a working code for it?A Totally transparent background.Right now its giving me black BG

This post has been edited 1 times, last edit by "ruju3011@gmail.com" (Apr 19th 2013, 12:32pm)


_Blueman

Intermediate

  • "_Blueman" is male

Posts: 196

Location: Poland

  • Send private message

2

Friday, April 19th 2013, 1:40pm

did you check it on another system (it may be problem on Blackberry platform) ? or with

Source code

1
image->fill(Qt::transparent);

3

Tuesday, April 23rd 2013, 4:45am

No, I'm working on Blackberry platform only. That has been solved now...It was problem while conversation









const bb::ImageData imageData = bb::ImageData::fromPixels(finalImage.bits(), bb::PixelFormat::RGBA_Premultiplied, finalImage.width(), finalImage.height(), finalImage.bytesPerLine());


used this and it shows correctly now. But somehow it displays image corners streched out (with grey color)