Results 1 to 2 of 2

Thread: Manually RGB Point Drawing

  1. #1
    Join Date
    Mar 2013
    Location
    Venezuela
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Symbian S60

    Question Manually RGB Point Drawing

    Hi everyone, I've been asked to develop a simple BMP Image Editor, with basic functions as rotation and color transformation. The only restriction I have is that all this have to be developed by myself so I won't be able to use libraries that makes this process automatically.

    Also, I've been asked to show the picture that the user wants to edit ...

    I don't have problems to develop rotating/loading/saving the picture manually, but when showing up, Can I put a "Frame" or a "widget" (I don't know wich term is the right one) in the middle of my window (a common GUI window) so I can "read" the picture byte by byte and draw it to that frame setting up the RGB palette for each point of it?

    Thanks for reading!

  2. #2
    Join Date
    Dec 2012
    Posts
    90
    Thanks
    5
    Thanked 20 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Manually RGB Point Drawing

    You can put a QLabel inside your window.
    QLabel has setPixmap method, which allows you to specify QPixmap that is being displayed on a label(it's a bit strange to use QLabel for that purpose, but it's a common way).
    QPixmap in turn can be used as paint device for QPainter or converted to QImage for per-pixel access.

Similar Threads

  1. Replies: 3
    Last Post: 21st June 2011, 19:37
  2. manually drawing on the canvas
    By kja in forum Qwt
    Replies: 1
    Last Post: 2nd April 2011, 17:18
  3. Replies: 1
    Last Post: 3rd December 2009, 14:23
  4. display a plot point by point
    By oswalidos in forum Newbie
    Replies: 32
    Last Post: 13th March 2009, 15:37
  5. how to paint scene point by point
    By elessaar in forum Qt Programming
    Replies: 8
    Last Post: 4th September 2008, 20:00

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.