Results 1 to 2 of 2

Thread: Bitmap Memory location to read and draw in Qt

  1. #1
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Bitmap Memory location to read and draw in Qt

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Bitmap Memory location to read and draw in Qt

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Draw directly from a memory segment
    By 25an in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2009, 13:04
  2. dll exception: int at memory location errors
    By jeffpogo in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2009, 20:01
  3. Memory could not be read? (runtime) [solved]
    By DrDonut in forum Qt Programming
    Replies: 2
    Last Post: 27th February 2009, 10:15
  4. [Closed] Read an XML file into memory
    By marvaneke in forum Qt Programming
    Replies: 2
    Last Post: 25th March 2008, 15:51
  5. Memory leaks when read/write to DOM
    By SailinShoes in forum Qt Programming
    Replies: 6
    Last Post: 20th March 2008, 11:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.