Available in the LEADTOOLS Imaging toolkit. |
DrawText method (Main Control)
Visual Basic
example
Visual
C++ 4.0 example
Access 2.0 example
Access
95, 97 example
Visual
J++ example
Syntax short DrawText (BSTR szText, OLE_HANDLE ForegroundImage);
Overview: Refer to Drawing Three-Dimensional Shapes and Text.
Remarks
Draws a text object in the control's client area or on the current bitmap. Placement and other aspects of the text object are specified by related properties described in Drawing Three-Dimensional Shapes and Text.
You can create an image that consists of a pattern or gradient color to use as a foreground of the text. Refer to Gradients and Patterns for related properties.
The bitmap that you specify is positioned at the origin of the text object's rectangle, and it is not scaled. Therefore the bitmap that you use for this purpose should be sized accordingly. In most cases it should be the same size as the rectangle.
See Also
Elements: DrawTextOut method
Topics: Working
with the Control: Client Area Usage
Raster Images: Drawing on a Bitmap