2.2.2.13 EmfPlusCustomLineCapData Object

The EmfPlusCustomLineCapData object specifies default data for a custom line cap.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

CustomLineCapDataFlags

BaseCap

BaseInset

StrokeStartCap

StrokeEndCap

StrokeJoin

StrokeMiterLimit

WidthScale

FillHotSpot

...

StrokeHotSpot

...

OptionalData (variable)

...

CustomLineCapDataFlags (4 bytes): An unsigned integer that specifies the data in the OptionalData field. This value is composed of CustomLineCapData flags (section 2.1.2.2).

BaseCap (4 bytes): An unsigned integer that specifies the value from the LineCapType enumeration (section 2.1.1.17) on which the custom line cap is based.

BaseInset (4 bytes): A floating-point value that specifies the distance between the beginning of the line cap and the end of the line.

StrokeStartCap (4 bytes): An unsigned integer that specifies the value in the LineCapType enumeration that indicates the line cap used at the start of the line to be drawn.

StrokeEndCap (4 bytes): An unsigned integer that specifies the value in the LineCapType enumeration that indicates what line cap is to be used at the end of the line to be drawn.

StrokeJoin (4 bytes): An unsigned integer that specifies the value in the LineJoinType enumeration (section 2.1.1.18) that specifies how to join two lines that are drawn by the same pen and whose ends meet. At the intersection of the two line ends, a line join makes the connection look more continuous.

StrokeMiterLimit (4 bytes): A floating-point value that contains the limit of the thickness of the join on a mitered corner by setting the maximum allowed ratio of miter length to line width.

WidthScale (4 bytes): A floating-point value that specifies the amount by which to scale the custom line cap with respect to the width of the EmfPlusPen object (section 2.2.1.7) that is used to draw the lines.

FillHotSpot (8 bytes): An EmfPlusPointF object (section 2.2.2.36) that is not currently used. It MUST be set to {0.0, 0.0}.

StrokeHotSpot (8 bytes): An EmfPlusPointF object that is not currently used. It MUST be set to {0.0, 0.0}.

OptionalData (variable): An optional EmfPlusCustomLineCapOptionalData object (section 2.2.2.14) that specifies additional data for the custom graphics line cap. The specific contents of this field are determined by the value of the CustomLineCapDataFlags field.

Custom line caps are specified by EmfPlusCustomLineCap objects (section 2.2.1.2).

See section 2.2.2 for the specification of additional structure objects.