PDA

View Full Version : Bitmap Memory location to read and draw in Qt



augusbas
2nd September 2010, 11:50
Hi all,

I am using a third party library ,where the output of a bitmap class updates a Bitmap data in a memory location.

Is there is a way, i can read the data from the memory location and paint the picture in Qt using any of the Qt Paint or Picture classes.

Please advise me.

Augus

wysota
2nd September 2010, 21:21
You can pass the data to QImage, provided you first set it to the data format corresponding the one from the other library. QImage::bits() returns a pointer to the beginning of image data that you can use to fill it with your own data.