[PyKDE] QFont and PIL

Andreas Pakulat apaku at gmx.de
Thu Jul 20 14:42:36 BST 2006


On 20.07.06 12:48:09, Aljosa Mohorovic wrote:
> On 7/19/06, Andreas Pakulat <apaku at gmx.de> wrote:
> >Also : Why do you need PIL? Qt can itself draw to images and then put
> >these into files, into bytearrays to send of the the network or anything
> >else you can do with an encoded image. So if you need PIL (I don't know
> >PIL other than that it's an imaging lib) to do some fancy image
> >processing, you could first paint everything you want into a QImage and
> >then save it into a temporary file (or in-memory file) and read it from
> >there into PIL.
> 
> if i have QImage how can i put text on QImage? is it possible to pub
> QLabel on QImage?

A QImage is a QPaintDevice and thus you can create a QPainter which
draws onto the QImage. QPainter then can draw, lines, circles, shapes
and text (and various other things).

Andreas

-- 
You may be gone tomorrow, but that doesn't mean that you weren't here today.




More information about the PyQt mailing list