PenCreateΒΆ

Creates a pen object.

hPen = PenCreate()
hPen = PenCreate(hPenOther)
hPen = PenCreate(nStyle, nWidth, rvColorRGB)

Return Value

hPen is the pen handle. If the pen cannot be created, hPen is 0.

Parameters

nStyle

nStyle is one of the following values:

Value Meaning
PS_SOLID solid line pen
PS_DASH dash pen
PS_DOT dot pen
PS_DASHDOT dash dot pen
PS_DASHDOTDOT dash dot dot pen
PS_NULL invisible pen
nWidth

nWidth is the width of the pen in 0.1 mm.

rvColorRGB

rvColorRGB is a vector with 3 elements that set the pen color:

Value Meaning
rvColorRGB[1] Red (0 to 255)
rvColorRGB[2] Green (0 to 255)
rvColorRGB[3] Blue (0 to 255)

History

Version Description
4.2.7 Function can be invoked with one parameter (copy constructor).

id-246394