Skip to content

PdfCornerRadii struct

View as Markdown

Namespace: PdfNetStack.Drawing
Assembly: PdfNetStack.dll
Package: PdfNetStack

Corner radii of a rounded rectangle, each with a horizontal and a vertical radius.

public readonly record struct PdfCornerRadii : IEquatable<PdfCornerRadii>

Implements

IEquatable<PdfCornerRadii>

PdfCornerRadii(double, double, double, double, double, double, double, double)

Section titled “ PdfCornerRadii(double, double, double, double, double, double, double, double)”

Corner radii of a rounded rectangle, each with a horizontal and a vertical radius.

public PdfCornerRadii(double TopLeftX, double TopLeftY, double TopRightX, double TopRightY, double BottomRightX, double BottomRightY, double BottomLeftX, double BottomLeftY)

TopLeftX double

Horizontal radius of the top left corner.

TopLeftY double

Vertical radius of the top left corner.

TopRightX double

Horizontal radius of the top right corner.

TopRightY double

Vertical radius of the top right corner.

BottomRightX double

Horizontal radius of the bottom right corner.

BottomRightY double

Vertical radius of the bottom right corner.

BottomLeftX double

Horizontal radius of the bottom left corner.

BottomLeftY double

Vertical radius of the bottom left corner.

Horizontal radius of the bottom left corner.

public double BottomLeftX { get; init; }

double

Vertical radius of the bottom left corner.

public double BottomLeftY { get; init; }

double

Horizontal radius of the bottom right corner.

public double BottomRightX { get; init; }

double

Vertical radius of the bottom right corner.

public double BottomRightY { get; init; }

double

Horizontal radius of the top left corner.

public double TopLeftX { get; init; }

double

Vertical radius of the top left corner.

public double TopLeftY { get; init; }

double

Horizontal radius of the top right corner.

public double TopRightX { get; init; }

double

Vertical radius of the top right corner.

public double TopRightY { get; init; }

double

Circular radii per corner, clockwise from the top left.

public static PdfCornerRadii Of(double topLeft, double topRight, double bottomRight, double bottomLeft)

topLeft double

topRight double

bottomRight double

bottomLeft double

PdfCornerRadii

The same circular radius on every corner.

public static PdfCornerRadii Uniform(double radius)

radius double

PdfCornerRadii