Documentation de Gambas - /comp/gb.qt4/paint/drawtextshadow

/comp/gb.qt4/paint/drawtextshadow

# Paint.DrawTextShadow (gb.qt4)

Static Sub DrawTextShadow ( Text As String, X As Float, Y As Float, W As Float, H As Float [ , Alignment As Integer, Radius As Integer, Opacity As Float ] )

Draw the shadow of a text.

- X, Y, W and H define a rectangle where the text will be drawn.

- Alignment defines the text alignment, Align.Left by default.

- Radius is the blur radius in pixels. By default, it is 1/8th of the font height.

- Opacity is the opacity of the blur between `0.0` and `1.0`. By default it is `0.5` (50% transparent).

You must call Paint.DrawText to draw the real text below the shadow.