Table of Contents

Class CustomLineCap

Namespace
Aspose.Imaging
Assembly
Aspose.Imaging.dll

Encapsulates a custom user-defined line cap.

public class CustomLineCap
Inheritance
CustomLineCap
Inherited Members

Constructors

CustomLineCap(GraphicsPath, GraphicsPath)

Initializes a new instance of the CustomLineCap class with the specified outline and fill.

public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)

Parameters

fillPath GraphicsPath

A GraphicsPath object that defines the fill for the custom cap.

strokePath GraphicsPath

A GraphicsPath object that defines the outline of the custom cap.

CustomLineCap(GraphicsPath, GraphicsPath, LineCap)

Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline and fill.

public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap)

Parameters

fillPath GraphicsPath

A GraphicsPath object that defines the fill for the custom cap.

strokePath GraphicsPath

A GraphicsPath object that defines the outline of the custom cap.

baseCap LineCap

The line cap from which to create the custom cap.

CustomLineCap(GraphicsPath, GraphicsPath, LineCap, float)

Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline, fill, and inset.

public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap, float baseInset)

Parameters

fillPath GraphicsPath

A GraphicsPath object that defines the fill for the custom cap.

strokePath GraphicsPath

A GraphicsPath object that defines the outline of the custom cap.

baseCap LineCap

The line cap from which to create the custom cap.

baseInset float

The distance between the cap and the line.

Properties

BaseCap

Gets or sets the LineCap enumeration on which this CustomLineCap is based.

public LineCap BaseCap { get; set; }

Property Value

LineCap

The LineCap enumeration on which this CustomLineCap is based.

BaseInset

Gets or sets the distance between the cap and the line.

public float BaseInset { get; set; }

Property Value

float

The distance between the beginning of the cap and the end of the line.

FillPath

Gets or sets the object that defines the fill for the custom cap.

public GraphicsPath FillPath { get; set; }

Property Value

GraphicsPath

The object that defines the fill for the custom cap.

StrokeJoin

Gets or sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.

public LineJoin StrokeJoin { get; set; }

Property Value

LineJoin

The LineJoin enumeration this CustomLineCap object uses to join lines.

StrokePath

Gets or sets the object that defines the outline of the custom cap.

public GraphicsPath StrokePath { get; set; }

Property Value

GraphicsPath

The object that defines the outline of the custom cap.

WidthScale

Gets or sets the amount by which to scale this CustomLineCap Class object with respect to the width of the System.Drawing.Pen object.

public float WidthScale { get; set; }

Property Value

float

The amount by which to scale the cap.

Methods

Equals(CustomLineCap)

Check if objects are equal.

protected bool Equals(CustomLineCap other)

Parameters

other CustomLineCap

The other object.

Returns

bool

The equality comparison result.

Equals(object)

Check if objects are equal.

public override bool Equals(object obj)

Parameters

obj object

The other object.

Returns

bool

The equality comparison result.

GetHashCode()

Get hash code of the current object.

public override int GetHashCode()

Returns

int

The hash code.

GetStrokeCaps(out LineCap, out LineCap)

Gets the caps used to start and end lines that make up this custom cap.

public void GetStrokeCaps(out LineCap startCap, out LineCap endCap)

Parameters

startCap LineCap

The LineCap enumeration used at the beginning of a line within this cap.

endCap LineCap

The LineCap enumeration used at the end of a line within this cap.

SetStrokeCaps(LineCap, LineCap)

Sets the caps used to start and end lines that make up this custom cap.

public void SetStrokeCaps(LineCap startCap, LineCap endCap)

Parameters

startCap LineCap

The LineCap enumeration used at the beginning of a line within this cap.

endCap LineCap

The LineCap enumeration used at the end of a line within this cap.