# SETLINEWIDTHQQ (W*S)

Graphics Subroutine: Sets the width of a solid line drawn using any of the supported graphics functions.

## Module

USE IFQWIN

CALL SETLINEWIDTHQQ (x)

x | (Input) INTEGER(4). It can be any non-negative integer.

This subroutine sets the line width in pixels using the value that is passed as the argument.

SETLINEWIDTHQQ affects the drawing of straight lines using functions such as LINETO, POLYGON, LINETOAR, LINETOAREX, RECTANGLE, and it affects the drawing of curved lines using functions such as ARC, ELLIPSE, or PIE.

### Note

The nWidth argument in the Windows* API CreatePen() is the width used to draw the lines or borders of a closed shape. A cosmetic pen can only have a width of 1 pixel. If you specify a higher width, it is ignored. A geometric pen can have a width of 1 or more pixels, but the line can only be solid or null. This means that if you specify the style as PS_DASH, PS_DOT, PS_DASHDOT, or PS_DASHDOTDOT, but set a width higher than 1 pixel, the line is drawn as PS_SOLID.

Parent topic: Graphics Library Routines

## See Also

GETLINEWIDTHQQ (W*S)

Windows* API CreatePen in the Microsoft* MSDN documentation