HPGL and Calcomp 906/907 files consist of up to 256 different vector pens. You can define the color, width, and dashing pattern of each of these pens individually. These vector pen settings are applied when a document is loaded.
If you want to define settings to individual pens, and these same settings can be used for display, printing, and rasterization, then INI file settings will meet your requirements.
To find out the current attributes of a particular vector pen:
· Use the IN_GetVectorPen function.
To change all attributes of a particular vector pen:
· Use the IN_SetVectorPen function.
To change the color of a vector pen line:
· Use the IN_SetVectorPenColor function.
To change the width of a vector pen line:
· Use the IN_SetVectorPenWidth function.
To change the dashing pattern of a vector pen line:
· Use the IN_SetVectorPenPattern function.
If you prefer, you can define all the vector pen values in an initialization (INI) file. That file can then be loaded for use. You can select which INI file defines the pen color, thickness, and dashed line pattern settings. You can also set certain pen settings so that they cannot be overridden by the values in the INI file.
To request and define the embedded vector pen settings to use for rendering:
· Use the IN_GetEmbeddedPenSetting and IN_SetEmbeddedPenSetting functions.
To select the INI file used to define vector pens:
· Use the IN_LoadPenSettings function.
For a list of the settings that the INI file can contain, see INI file settings for vector pens.
See also