Results 1 to 4 of 4

Thread: How to generate a pixmap with some text superimposed on a thumbnaill image ?

  1. #1
    Join Date
    May 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Question How to generate a pixmap with some text superimposed on a thumbnaill image ?

    I would like to generate a pixmap which contains some text superimposed on a thumbnail image. The pixmap i want is shown in the attachment. How should I go about this ?

    images4.jpg

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to generate a pixmap with some text superimposed on a thumbnaill image ?

    You can use QPainter on a pixmap and draw everything you like on it.

  3. #3
    Join Date
    May 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: How to generate a pixmap with some text superimposed on a thumbnaill image ?

    How do I prevent the original pixmap from getting modified & save the modified image to a new pixmap ?

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to generate a pixmap with some text superimposed on a thumbnaill image ?

    Qt Code:
    1. QPixmap original = //...
    2. QPixmap pixWithText = original;
    3. QPainter p(&pixWithText);
    4. //..
    5. pixWithText.save();
    To copy to clipboard, switch view to plain text mode 

  5. The following user says thank you to Lykurg for this useful post:

    ada10 (1st September 2010)

Similar Threads

  1. Load image to pixmap from internet
    By metRo_ in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2010, 07:08
  2. Draw Image into Pixmap/Image
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 19th May 2010, 06:56
  3. [problem]displaying image with Pixmap
    By crazy_inf in forum Qt Programming
    Replies: 1
    Last Post: 3rd July 2008, 09:49
  4. Generate image checksum
    By bunjee in forum Qt Programming
    Replies: 14
    Last Post: 10th June 2008, 01:16
  5. Qt 3.3.8 pixmap to/from image error
    By ksierens in forum Qt Programming
    Replies: 1
    Last Post: 15th April 2008, 06:46

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.