Set line thickness
int PgSetStrokeWidth( int width ); long PgSetStrokeFWidth( long width );
These functions set the thickness of lines.
If you call PgSetStrokeWidth(), the width argument takes an integer that indicates the width of the line in pixels. But if you call PgSetStrokeFWidth(), the width argument takes a pixel width multiplied by 65,536 (0x10000). For example, specifying a value of 0x80000 will set the line width to 8 pixels.
The minimum line width for PgSetStrokeFWidth() is one pixel. |
The previous width.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
We don't recommend using a line width greater than one pixel. Some graphics drivers might give unexpected results.
PgDrawEllipse(), PgDrawLine(), PgDrawPolygon(), PgDrawRect(), PgDrawRoundRect(), PgSetStrokeCap(), PgSetStrokeDash(), PgSetStrokeJoin()