SETMITERLIMIT

Syntax

short Escape(hDC, SETMITERLIMIT, sizeof(int),lpNewMiter,lpOldMiter)

This escape sets the miter limit for a device. The miter limit controls the angle at which a device driver replaces a miter join with a bevel join.

Parameter Type/Description  

hDC HDC Identifies the device context.  
nCount short Specifies the number of bytes to which the lpNewMiter parameter points.  
lpNewMiter LPINT Points to a short-integer value that specifies the desired miter limit. Only values greater than or equal to –1 are valid. If this value is –1, the driver will use the default GDI miter limit.  
lpOldMiter LPINT Points to a short-integer value that specifies the previous miter-limit setting.  

Return Value

The return value specifies the outcome of the escape. It is positive if the escape is successful. Otherwise, it is negative.

Comments

The miter limit is defined as follows:

miter-length over line-width = 1 over sin (x/2)

X is the angle of the line join in radians.

The interpretation of this escape varies with page-description languages (PDLs). Consult the PDL documentation for its exact meaning.