Example: String Measurement

Example FGFW5 displays text centered within a rectangle. It uses fgf_width() and fgf_height() to determine the size of the rectangle and then centers the text inside it. The rectangle's extremes are chosen to extend four pixels beyond the edge of the text in each direction.

C/C++ version

C++Builder version

Delphi version

Visual Basic version

<< Prev

Next >>

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.