SET_LINE_STYLE@

Platform

Win32, x64

Purpose

To set the style for a line on the current drawing surface.

Syntax

SUBROUTINE SET_LINE_STYLE@( VALUE )
INTEGER VALUE

Description

This routine changes the line style on the current drawing surface. VALUE is one of the following predefined Windows constants (available from the file windows.ins):

 

PS_SOLID

solid line

 

PS_DASH

dashed line

 

PS_DOT

dotted line

 

PS_DASHDOT

alternating dashes and dots

 

PS_DASHDOTDOT

alternating dashes and double dots

 

PS_NULL

pen is invisible

 

PS_INSIDEFRAME

the dimensions of a figure are reduced so that it fits entirely in the bounding rectangle, taking into account the width of the pen.


The following "endcap" styles must be combined with the PS_GEOMETRIC style.

 

PS_ENDCAP_ROUND

lines have a rounded end

 

PS_ENDCAP_SQUARE

lines have a square end

 

PS_ENDCAP_FLAT

lines have a flat end

Notes

PS_INSIDEFRAME can be ORed with one of the other values.

PS_SOLID, PS_NULL and PS_INSIDEFRAME are only available with a line width greater than 1.

PS_NULL can be used to remove the black border when printing a 'filled polygon', for example, on a black and white printer.

See also

SET_LINE_WIDTH@, SET_DASH_ARRAY@, SET_MITER_LIMIT@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited