Results 1 to 2 of 2

Thread: How to display picture from raw data without head?

  1. #1
    Join Date
    May 2010
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to display picture from raw data without head?

    My received pic data does not contain the head, but I know the pic information. It is the common BMP with BITMAPINFO fixed. such as:
    bitmapInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
    bitmapInfo.bmiHeader.biPlanes = 1;
    bitmapInfo.bmiHeader.biBitCount = 24;
    bitmapInfo.bmiHeader.biCompression = BI_RGB;
    bitmapInfo.bmiHeader.biWidth = 320;
    bitmapInfo.bmiHeader.biHeight = 240;

    How can I display this pic in Qt? What tools and how to use? Is QPixmap, QImage, QPicture? I know the data with head can load simply, but how about load data without head?

  2. #2
    Join Date
    Apr 2010
    Location
    Rostov-na-Donu, Russia
    Posts
    153
    Thanks
    2
    Thanked 26 Times in 23 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to display picture from raw data without head?


Similar Threads

  1. How do I display a picture on a QTableView cell?
    By danielperaza in forum Qt Programming
    Replies: 16
    Last Post: 9th April 2010, 22:04
  2. QNetworkAccessManager::head not working
    By jonks in forum Qt Programming
    Replies: 4
    Last Post: 21st October 2009, 22:23
  3. how can I get picture data from file ?
    By yleesun in forum Qt Programming
    Replies: 5
    Last Post: 21st October 2009, 11:12
  4. Replies: 1
    Last Post: 15th March 2009, 20:01

Tags for this Thread

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.