comp • gb.qt4 • paint • drawrichtext

Paint.DrawRichText (gb.qt4)

Static Sub DrawRichText ( Text As String [ , X As Float, Y As Float, Width As Float, Height As Float, Alignment As Integer ] )

Draws a piece of rich text.

If you specified the optional parameters, then the text is constrained to the given rectangle, and aligned according to the Alignment parameter.

It is faster to draw text with that method than using Paint.RichText then Paint.Fill.