Table of Contents

Class Arc

Namespace
PDFjet.NET
Assembly
PDFjet.dll

Used to create arc objects.

public class Arc : IDrawable
Inheritance
Arc
Implements
Derived
Inherited Members

Constructors

Arc()

The default constructor.

public Arc()

Methods

DrawOn(Page)

Draws this line on the specified page.

public float[] DrawOn(Page page)

Parameters

page Page

the page to draw on.

Returns

float[]

x and y coordinates of the bottom right corner of this component.

ScaleBy(float)

Scales this line by the specified factor.

public Arc ScaleBy(float factor)

Parameters

factor float

the factor used to scale the line.

Returns

Arc

this Arc object.

SetActualText(string)

Sets the actual text for this line.

public Arc SetActualText(string actualText)

Parameters

actualText string

the actual text for the line.

Returns

Arc

this Arc.

SetAltDescription(string)

Sets the alternate description of this line.

public Arc SetAltDescription(string altDescription)

Parameters

altDescription string

the alternate description of the line.

Returns

Arc

this Arc.

SetFillColor(int)

Sets the fill color as a 0xRRGGBB value, for example Color.blue. Color.transparent leaves it unchanged.

public Arc SetFillColor(int color)

Parameters

color int

Returns

Arc

SetFillColor(float[])

Sets the fill color from an array of red, green and blue values.

public Arc SetFillColor(float[] rgbColor)

Parameters

rgbColor float[]

Returns

Arc

SetLocation(float, float)

Sets the center of this arc.

public Arc SetLocation(float cx, float cy)

Parameters

cx float
cy float

Returns

Arc

SetRadius(float)

Sets both radii of this arc to the same value, making it circular.

public Arc SetRadius(float r)

Parameters

r float

Returns

Arc

SetRadiusX(float)

Sets the horizontal radius of this arc.

public Arc SetRadiusX(float rx)

Parameters

rx float

Returns

Arc

SetRadiusY(float)

Sets the vertical radius of this arc.

public Arc SetRadiusY(float ry)

Parameters

ry float

Returns

Arc

SetRotation(float)

Rotates this arc clockwise by the specified degrees, as every rotation in PDFjet turns.

public Arc SetRotation(float degrees)

Parameters

degrees float

Returns

Arc

SetStartAngle(float)

Sets the angle in degrees where this arc starts, clockwise from the 3 o'clock direction, as every angle in PDFjet turns.

public Arc SetStartAngle(float angle)

Parameters

angle float

Returns

Arc

SetStartPointToEndOf(Line)

Starts this arc at the end point of the specified line.

public Arc SetStartPointToEndOf(Line line)

Parameters

line Line

Returns

Arc

SetStrokeColor(int)

Sets the color for this line. Color.transparent leaves it unchanged.

public Arc SetStrokeColor(int color)

Parameters

color int

the color specified as an integer.

Returns

Arc

this Arc object.

SetStrokeColor(float[])

Sets the stroke color from an array of red, green and blue values.

public Arc SetStrokeColor(float[] rgbColor)

Parameters

rgbColor float[]

Returns

Arc

SetStrokeDashPattern(string)

The line dash pattern controls the pattern of dashes and gaps used to stroke paths. It is specified by a dash array and a dash phase. The elements of the dash array are positive numbers that specify the lengths of alternating dashes and gaps. The dash phase specifies the distance into the dash pattern at which to start the dash. The elements of both the dash array and the dash phase are expressed in user space units.

Examples of line dash patterns:

    "[Array] Phase"     Appearance          Description
    _______________     _________________   ____________________________________
    "[] 0"              -----------------   Solid line
    "[3] 0"             ---   ---   ---     3 units on, 3 units off, ...
    "[2] 1"             -  --  --  --  --   1 on, 2 off, 2 on, 2 off, ...
    "[2 1] 0"           -- -- -- -- -- --   2 on, 1 off, 2 on, 1 off, ...
    "[3 5] 6"             ---     ---       2 off, 3 on, 5 off, 3 on, 5 off, ...
    "[2 3] 11"          -   --   --   --    1 on, 3 off, 2 on, 3 off, 2 on, ...
public Arc SetStrokeDashPattern(string strokeDashPattern)

Parameters

strokeDashPattern string

the stroke dash pattern.

Returns

Arc

this Arc object.

SetStrokeWidth(float)

Sets the width of this line.

public Arc SetStrokeWidth(float width)

Parameters

width float

the width.

Returns

Arc

this Arc object.

SetSweep(float)

Sets how many degrees this arc sweeps from its start angle: clockwise for a positive angle, as every angle in PDFjet turns, and counterclockwise for a negative angle.

public Arc SetSweep(float degrees)

Parameters

degrees float

Returns

Arc