JpegPen Object

Overview

The JpegPen object enables setting the pen color, width, opacity and other parameters for stroking operations. This object is obtained via the Pen property of the JpegCanvas object.

Member List

Properties


int CapStyle (Read/Write)

Specifies the shape to be used at the ends of open subpaths when they are stroked. Valid values are 0 (butt cap), 1 (round cap) and 2 (projecting square cap).

See also: Section 5.1 - Drawing: Overview.


uint Color (Read/Write)

Specifies the pen color, e.g. 0xFF0000 for red. 0 (black) by default. Affects all stroking operations of the JpegCanvas object.

See also: Section 5.1 - Drawing: Overview.


float [] DashPattern (Read/Write)

Specifies the line dash pattern in the form of an array of floats. null by default, which corresponds to a solid line.

See also: Section 5.1 - Drawing: Overview.


float DashPhase (Read/Write)

Specifies the distance into the dash pattern at which to start the dash. 0 by default.

See also: Section 5.1 - Drawing: Overview.


int JoinStyle (Read/Write)

Specifies the current line join style. Valid values are 0 (Miter join), 1 (Round join) and 2 (Bevel join).

See also: Section 5.1 - Drawing: Overview.


float MiterLimit (Read/Write)

Specifies the current miter limit.

See also: Section 5.1 - Drawing: Overview.


float Opacity (Read/Write)

Specifies the pen opacity. A float value between 0 and 1 must be specified. 1 corresponds to full opacity, 0 to full transparency.

See also: Section 5.1 - Drawing: Overview.


float Width (Read/Write)

Specifies the pen width. 1 by default.

See also: Section 5.1 - Drawing: Overview.

Methods

This object has no public methods.