Results 1 to 20 of 33

Thread: Newbie: Require assistance - modify existing jpeg image ,save and display on LCD

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    Join Date
    Feb 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Newbie: Require assistance - modify existing jpeg image ,save and display on LCD

    This is what I have done:

    Qt Code:
    1. QImage image;
    2. const char *buffer = "/root/whitescreen.jpg";
    3. image.load(buffer);
    4. QPixmap pix;
    5. pix.fromImage(image, 0);
    6. QLabel* label = new QLabel;
    7. label->setPixmap(pix);
    8. label->show();
    To copy to clipboard, switch view to plain text mode 

    Please excuse me for my mistakes if any
    Last edited by jpn; 20th March 2008 at 18:04. Reason: missing [code] tags

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.