THPDFPage.SetDash Method
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THPDFPage.SetDash

THPDFPage

 

Top  Previous  Next

Sets dash pattern type.

 

Delphi syntax:

procedure SetDash ( DashArray: array of Byte; Phase: Byte );

 

C++ syntax:

void __fastcall SetDash ( const Byte * DashArray, const int DashArray_Size, Byte Phase);

 

Description:

The line dash pattern controls the pattern of dashes and gaps used to stroke paths. It is specified by a dash array and a dash phase. The dash array's elements are numbers that specify the lengths of alternating dashes and gaps; the dash phase specifies the distance into the dash pattern at which to start the dash.

 

Examples of line dash patterns

DASH ARRAY

DASH PHASE

APPEARANCE

DESCRIPTION

[]

[ 3 ]

[ 2 ]

[ 2 1 ] 

[ 3 5 ]

[ 2 3 ]

0

0

1

0

6

11

dashlin

No dash

3 units on, 3 units off ... 

1 on, 2 off, 2 on, 2 off, … 

2 on, 1 off, 2 on, 1 off, … 

2 off, 3 on, 5 off, 3 on, 5 off, … 

1 on, 3 off, 2 on, 3 off, 2 on, …        

 

 

Example

 

See also: NoDash

Copyright©2007-2019 losLab.com