PDA

View Full Version : Create a bitmap of formatted text



RamiRosenbaum
31st March 2016, 15:02
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?

anda_skoa
31st March 2016, 15:32
Yes, either with a grayscale image format or, if it only can do two colors, with a QBitmap.

Cheers,
_

RamiRosenbaum
2nd April 2016, 22:18
QBitmap worked - thanks.