FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
126
Copyright © Bridgetek Limited
4.30
LINE_WIDTH
Specify the width of lines to be drawn with primitive LINES in 1/16
th
pixel precision.
Encoding
31 24 23 12 11 0
0x0E
Reserved
width
Parameters
width
Line width in 1/16 pixel. The initial value is 16.
Description
Sets the width of drawn lines. The width is the distance from the center of the line to
the outermost drawn pixel, in units of 1/16 pixel. The valid range is from 16 to 4095
in terms of 1/16th pixel units.
Please note the LINE_WIDTH command will affect the LINES, LINE_STRIP, RECTS,
EDGE_STRIP_A/B/R/L primitives.
Examples
The second line is drawn with a width of 80, for a 5 pixel radius:
dl( BEGIN(LINES) );
dl( VERTEX2F(16 * 10, 16 * 30) );
dl( VERTEX2F(16 * 150, 16 * 40) );
dl( LINE_WIDTH(80) );
dl( VERTEX2F(16 * 10, 16 * 80) );
dl( VERTEX2F(16 * 150, 16 * 90) );
Graphics context
The value of width is part of the graphics context, as described in section 4.1
See also
None