Results 1 to 2 of 2

Thread: convert jpeg to rgb8

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2012
    Posts
    58
    Thanks
    13
    Qt products
    Qt4

    Question convert jpeg to rgb8

    hi,
    (using Qt 4.8.1, WindowsXP, Visual Studio 2010)
    i'v a specification that says RGB8 is "a raw array of 8-byte RGB triples (this is not BMP)."
    this is different from RGB888 right?
    Further, how do i convert (in Qt ofcourse) jpeg to RGB8 as specified above?
    (i'm using QImage mostly)
    thanks!!

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: convert jpeg to rgb8

    so http://doc.qt.io/qt-4.8/QImage#convertToFormat doesnt work?

    It looks to me like rgb888 is what you described.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. How to convert JPEG image into binary data?
    By Gokulnathvc in forum Newbie
    Replies: 1
    Last Post: 7th June 2011, 08:43
  2. From JPEG resources to RAW
    By paolom in forum Qt Programming
    Replies: 1
    Last Post: 22nd March 2011, 15:21
  3. jpeg support
    By FoleyX90 in forum Newbie
    Replies: 3
    Last Post: 19th May 2010, 15:29
  4. Replies: 11
    Last Post: 31st December 2008, 12:30
  5. jpeg viewer
    By chap19150 in forum Qt Programming
    Replies: 9
    Last Post: 6th June 2006, 11:57

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