Pen Styles - MapInfo_Pro - 2023

MapInfo Pro Help

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapInfo Pro
Version
2023
ft:locale
en-US
Product name
MapInfo Pro
ft:title
MapInfo Pro Help
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:39:16.995000

The Pen clause specifies the width, pattern, and color of a linear object, such as a line, polyline arc, or the border of a region. The Pen clause has the following syntax:

PEN (width, pattern, color)

Width is a number from 1 to 7. 1-7 is the width in screen pixels. 11-2047 are values that will be converted to points:

penwidth = (number of points * 10) + 10

0 is only valid when the pen pattern is 1 for invisible lines.

Color is an integer, representing a 24-bit RGB color value.

Pattern is an integer from 1 to 118; pattern number 1 is invisible. The pattern number corresponds to a pen number in the pen file. The pen file can be modified using a pen editor.

Valid pen numbers are from 1 to maximum number of pens in the pen file, which should not exceed 127. If a pen style is interleaved, 128 will be added to the pen number. Interleaved styles are in the range 129-255. Because the pen file can be modified, and interleaved can be specified, the pen pattern can be a number between 1-255.

The following table lists the available line styles by default: