Results 1 to 3 of 3

Thread: Is QImage BMP lossless?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Is QImage BMP lossless?

    There are various forms of BMP, some with lossless run-length encoding, none with lossy image compression like JPEG. Taking a 24-bit image and putting it in a 24-bit BMP will not be lossy. Any alpha channel from a 32-bit image may be lost because only recent variants of BMP support it. Also if Qt (or Paint) produces a 16-bit or colour mapped BMP then it will be lossy with respect to the original image. It seems the Qt output code will do the right default thing from a cursory inspection of the source (src/gui/image/qbmphandler.cpp).

  2. The following user says thank you to ChrisW67 for this useful post:

    jajcek (8th November 2012)

Similar Threads

  1. Replies: 5
    Last Post: 16th May 2011, 21:15
  2. QImage
    By hazardpeter in forum Newbie
    Replies: 2
    Last Post: 31st July 2009, 15:19
  3. What's faster: QPixmap-to-QImage or QImage-to-QPixmap
    By forrestfsu in forum Qt Programming
    Replies: 2
    Last Post: 15th December 2006, 17:11
  4. QImage
    By mickey in forum Qt Programming
    Replies: 7
    Last Post: 14th July 2006, 21:54
  5. Replies: 3
    Last Post: 15th March 2006, 11:44

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
  •  
Qt is a trademark of The Qt Company.