CustomLineCap class (gdiplusheaders.h)

The CustomLineCap class encapsulates a custom line cap. A line cap defines the style of graphic used to draw the ends of a line. It can be various shapes, such as a square, circle, or diamond. A custom line cap is defined by the path that draws it. The path is drawn by using a Pen object to draw the outline of a shape or by using a Brush object to fill the interior. The cap can be used on either or both ends of the line. Spacing can be adjusted between the end caps and the line.

Inheritance

The CustomLineCap class implements GdiplusBase.

Methods

The CustomLineCap class has these methods.

 
CustomLineCap::Clone

The CustomLineCap::Clone method copies the contents of the existing object into a new CustomLineCap object.
CustomLineCap::CustomLineCap

Copy constructor for CustomLineCap.
CustomLineCap::CustomLineCap

Creates a CustomLineCap::CustomLineCap object. (overload 1/2)
CustomLineCap::CustomLineCap

Creates a CustomLineCap::CustomLineCap object. (overload 2/2)
CustomLineCap::GetBaseCap

The CustomLineCap::GetBaseCap method gets the style of the base cap. The base cap is a LineCap object used as a cap at the end of a line along with this CustomLineCap object.
CustomLineCap::GetBaseInset

The CustomLineCap::GetBaseInset method gets the distance between the base cap to the start of the line.
CustomLineCap::GetLastStatus

The CustomLineCap::GetLastStatus method returns a value that indicates the nature of this CustomLineCap object's most recent method failure.
CustomLineCap::GetStrokeCaps

The CustomLineCap::GetStrokeCaps method gets the end cap styles for both the start line cap and the end line cap. Line caps are LineCap objects that end the individual lines within a path.
CustomLineCap::GetStrokeJoin

The CustomLineCap::GetStrokeJoin method returns the style of LineJoin used to join multiple lines in the same GraphicsPath object.
CustomLineCap::GetWidthScale

The CustomLineCap::GetWidthScale method gets the value of the scale width. This is the amount to scale the custom line cap relative to the width of the Pen object used to draw a line. The default value of 1.0 does not scale the line cap.
CustomLineCap::SetBaseCap

The CustomLineCap::SetBaseCap method sets the LineCap that appears as part of this CustomLineCap at the end of a line.
CustomLineCap::SetBaseInset

The CustomLineCap::SetBaseInset method sets the base inset value of this custom line cap. This is the distance between the end of a line and the base cap.
CustomLineCap::SetStrokeCap

The CustomLineCap::SetStrokeCap method sets the LineCap object used to start and end lines within the GraphicsPath object that defines this CustomLineCap object.
CustomLineCap::SetStrokeCaps

The CustomLineCap::SetStrokeCaps method sets the LineCap objects used to start and end lines within the GraphicsPath object that defines this CustomLineCap object.
CustomLineCap::SetStrokeJoin

The CustomLineCap::SetStrokeJoin method sets the style of line join for the stroke. The line join specifies how two lines that intersect within the GraphicsPath object that makes up the custom line cap are joined.
CustomLineCap::SetWidthScale

The CustomLineCap::SetWidthScale method sets the value of the scale width. This is the amount to scale the custom line cap relative to the width of the Pen used to draw lines. The default value of 1.0 does not scale the line cap.

Requirements

Requirement Value
Target Platform Windows
Header gdiplusheaders.h