Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Control
Key
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Paint.TextExtents (gb.qt4)

Static Function TextExtents ( Text As String ) As PaintExtents

Gets the extents for a string of text.

The extents describe a user-space rectangle that encloses the "inked" portion of the text, as it would be drawn by Paint.Text and Paint.Fill with no transformation matrix.

This function is an equivalent of:

Dim hTextExtents as PaintExtents
Dim sText as String

Paint.NewPath
Paint.Reset
Paint.Text(sText)

hTextExtents = Paint.PathExtents

See also