Results 1 to 3 of 3

Thread: Create a bitmap of formatted text

  1. #1
    Join Date
    Mar 2016
    Posts
    6
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Create a bitmap of formatted text

    hi,
    I have a proprietary display, which I draw on by manipulating GPIOs.
    The display is monochrome.
    I need to create monochrome images of formatted text (multi-language, TTF fonts, etc.)
    How can that be done?
    I'm thinking of QImage and QPainter - am I in the right direction?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Create a bitmap of formatted text

    Yes, either with a grayscale image format or, if it only can do two colors, with a QBitmap.

    Cheers,
    _

  3. #3
    Join Date
    Mar 2016
    Posts
    6
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Create a bitmap of formatted text

    QBitmap worked - thanks.

Similar Threads

  1. Replies: 2
    Last Post: 2nd November 2015, 11:20
  2. create texture from bitmap
    By saman_artorious in forum Qt Programming
    Replies: 3
    Last Post: 11th January 2014, 16:19
  3. Displaying a formatted text
    By Radek in forum Newbie
    Replies: 2
    Last Post: 5th August 2013, 18:01
  4. Drawing Rich Formatted Text with QPainter
    By millsks in forum Qt Programming
    Replies: 1
    Last Post: 5th March 2009, 19:59
  5. formatted text in QTreeWidgetItem
    By swiety in forum Qt Programming
    Replies: 1
    Last Post: 30th October 2007, 16:26

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.