Admin Production ni-theme
Current Publication

Pens

LabWindows/CVI

Pens Class Help

This class contains functions that manipulate the location of the canvas pen and restore its attributes to the default.

Each canvas has a pen. The location of the pen affects the starting position of the line drawn by the CanvasDrawLineTo function. The location of the pen is affected only by the CanvasSetPenPosition and the CanvasDrawLineTo functions.

The following canvas pen attributes can be set individually using SetCtrlAttribute.

  • ATTR_PEN_WIDTH
  • ATTR_PEN_STYLE
  • ATTR_PEN_COLOR
  • ATTR_PEN_FILL_COLOR
  • ATTR_PEN_MODE
  • ATTR_PEN_PATTERN

The CanvasDefaultPen function resets all these attributes to their default values.

Library: User Interface Library