Pen Object

Overview

The Pen object enables setting the pen color and width for drawing operations. This object is obtained via the Pen property of the Canvas object.

Member List

Properties


Color As Long (Read/Write)

Specifies a pen color, e.g. &HFF0000 for red. 0 (black) by default. Affects the color of a line, bar, circle, ellipse and arc.

See also: Chapter 5 - Drawing & Typing.


Opacity As Single (Read/Write)

Specifies pen opacity. A float value between 0 and 1 must be specified. 1 corresponds to full opacity, 0 to full transparency. This property affects the method DrawLineEx only.

This property was introduced in Version 2.1.

See also: Section 5.4 - Anti-aliased Drawing Routines.


Width As Long (Read/Write)

Specifies a pen width. Affects the border width of a line, bar, circle, ellipse and arc. 1 by default.

See also: Chapter 5 - Drawing & Typing.

Methods

This object has no public methods.