Class CustomLineCap

Class CustomLineCap

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.2.0)

Encapsulates a custom user-defined line cap.

public class CustomLineCap

Inheritance

objectCustomLineCap

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

CustomLineCap(GraphicsPath, GraphicsPath)

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

public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)

Parameters

fillPath GraphicsPath

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

strokePath GraphicsPath

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

CustomLineCap(GraphicsPath, GraphicsPath, LineCap)

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

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

Parameters

fillPath GraphicsPath

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

strokePath GraphicsPath

A Aspose.Imaging.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 Aspose.Imaging.CustomLineCap class from the specified existing Aspose.Imaging.LineCap enumeration with the specified outline, fill, and inset.

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

Parameters

fillPath GraphicsPath

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

strokePath GraphicsPath

A Aspose.Imaging.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 Aspose.Imaging.LineCap enumeration on which this Aspose.Imaging.CustomLineCap is based.

public LineCap BaseCap { get; set; }

Property Value

LineCap

BaseInset

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

public float BaseInset { get; set; }

Property Value

float

FillPath

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

public GraphicsPath FillPath { get; set; }

Property Value

GraphicsPath

StrokeJoin

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

public LineJoin StrokeJoin { get; set; }

Property Value

LineJoin

StrokePath

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

public GraphicsPath StrokePath { get; set; }

Property Value

GraphicsPath

WidthScale

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

public float WidthScale { get; set; }

Property Value

float

Methods

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.

Equals(CustomLineCap)

Check if objects are equal.

protected bool Equals(CustomLineCap other)

Parameters

other CustomLineCap

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 Aspose.Imaging.LineCap enumeration used at the beginning of a line within this cap.

endCap LineCap

The Aspose.Imaging.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 Aspose.Imaging.LineCap enumeration used at the beginning of a line within this cap.

endCap LineCap

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