Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, July 2007
Drawing Text on QImage


Message 1 in thread

hi all,   I use QPainter to draw text on qimage, but in the edge, it has some black lines, i don't know how to get rid of this, here is the pic, thank you in advance Reimand,2007-7-2      

Attachment: matrix.jpg
Description: image/pjpeg


Message 2 in thread

On 2007-07-02, reimand zhu wrote:
> hi all,   I use QPainter to draw text on qimage, but in the edge, it has
> some black lines, i don't know how to get rid of this, here is the pic,
> thank you in advance Reimand,2007-7-2

I'm guessing that the black lines are the outlines.

You could try setting

    painter.setPen(QPen(Qt::NoPen));

or setting the pen to the same colour as the brush you are using.


-- 
 [ signature omitted ] 

Message 3 in thread

No, I don't set the brush and there are no outlines, because if i set font size to enough large,black lines would disappear Reimand 
在2007-07-02,"Mark Summerfield" <mark@xxxxxxxx> 写道:
On 2007-07-02, reimand zhu wrote: > hi all, I use QPainter to draw text on qimage, but in the edge, it has > some black lines, i don't know how to get rid of this, here is the pic, > thank you in advance Reimand,2007-7-2 I'm guessing that the black lines are the outlines. You could try setting painter.setPen(QPen(Qt::NoPen)); or setting the pen to the same colour as the brush you are using. -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu -- To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body. List archive and information: http://lists.trolltech.com/qt-interest/

Attachment: matrix2.jpg
Description: image/pjpeg