Click or drag to resize

Pen Object

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release

Pen objects are used to draw lines. Pens can be any color and integer width and can optionally have a style, such as a dashed line. The interval of a styled line is proportional to the thickness of the pen; a dashed line with thickness 4 has longer dashes than a line with thickness 2.

Syntax
cam
PEN<(color),width [:style]>
Examples
cam
PEN<!blue, 1>
PEN<(255,200,10), 2:dashed>
PEN<!railway, 1:railway>
PEN<(0,0,0,80), 4:custom[3,1,2,1,1,1]>
Parameters

color

The color that the pen should be drawn in

width

The width of the pen, in integer units between 1 and 15 pixels

style

Specifies a drawing style for the line, from the list given below. Optional.

Pen Rendering Options

solid

Renders a continuous line. Default.

dash

Renders a series of dashes. Equivalent to custom[3,5].

dot

Renders as a series of dots. Equivalent to custom[1,1].

dashdot

Renders as a series of alternating dashes and dots. Equivalent to custom[3,1,1,1].

dashdotdot

Renders as a series of alternating dashes and dot pairs. Equivalent to custom[3,1,1,1,1,1].

railway

Renders as a railway.

custom

Takes a list of lengths describing how to draw the line. The items in the list are pairs lengths. The first is the length of the 'drawn' section of the line. The second is the length of the 'gap' section. See above styles for examples.