[R] getting lines with non-rounded caps?

Duncan Murdoch dmurdoch at pair.com
Wed Sep 20 14:47:30 CEST 2000


On Wed, 20 Sep 2000 11:16:59 +0100 (BST), Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote:

>I don't know if it is possible to achieve different internal and
>end effects under the Windows graphics model.

It apparently is.  Here's something from the Windows help on
ExtCreatePen:

>The end cap is only specified for geometric pens. The end cap can be one of the following values: 
>
>End cap	Description
>PS_ENDCAP_ROUND	End caps are round.
>PS_ENDCAP_SQUARE	End caps are square.
>PS_ENDCAP_FLAT	End caps are flat.
>The join is only specified for geometric pens. The join can be one of the following values: 
>
>Line join	Description
>PS_JOIN_BEVEL	Joins are beveled.
>PS_JOIN_MITER	Joins are mitered when they are within the current limit set by the SetMiterLimit function. If it exceeds this limit, the join is beveled.
>PS_JOIN_ROUND	Joins are round.
>Windows 95 only: The PS_ENDCAP_ROUND, PS_ENDCAP_SQUARE, PS_ENDCAP_FLAT, PS_JOIN_BEVEL, PS_JOIN_MITER, and PS_JOIN_ROUND styles are supported only for geometric pens when used to draw paths.

I've never modified these, so I don't know how well they work.

Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list