Show / Hide Table of Contents

# Class CubicCurveBuilder

Creates Cubic Curves from linear points

##### Inheritance

object
CubicCurveBuilder

##### Implements

IDisposable

##### Inherited Members

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

###### Namespace: pdftron.PDF

###### Assembly: PDFNet.dll

##### Syntax

    public sealed class CubicCurveBuilder : IDisposable

### Methods

#### AddSourcePoint(double, double)

Add a source xy point.

##### Declaration

    public void AddSourcePoint(double x, double y)

##### Parameters

Type | Name | Description
--- | --- | ---
double | x | the x coordinate
double | y | the y coordinate

#### Dispose()

##### Declaration

    public override sealed void Dispose()

#### Dispose(bool)

##### Declaration

    [HandleProcessCorruptedStateExceptions]
    protected void Dispose(bool A_0)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | A_0 |

#### ~CubicCurveBuilder()

##### Declaration

    protected ~CubicCurveBuilder()

#### GetCubicXCoord(int)

Get the cubic X coordinate.

##### Declaration

    public double GetCubicXCoord(int index)

##### Parameters

Type | Name | Description
--- | --- | ---
int | index | the index of the coordinate. Must be less than NumCubicPoints()

##### Returns

Type | Description
--- | ---
double | X coordinate of the indicated point on the cubic curve

#### GetCubicYCoord(int)

Get the cubic Y coordinate.

##### Declaration

    public double GetCubicYCoord(int index)

##### Parameters

Type | Name | Description
--- | --- | ---
int | index | the index of the coordinate. Must be less than NumCubicPoints()

##### Returns

Type | Description
--- | ---
double | Y coordinate of the indicated point on the cubic curve

#### NumCubicPoints()

Number of generated cubic points.

##### Declaration

    public int NumCubicPoints()

##### Returns

Type | Description
--- | ---
int | Indicates that the conversion succeeded, failed, or was cancelled

#### NumSourcePoints()

Number of source points.

##### Declaration

    public int NumSourcePoints()

##### Returns

Type | Description
--- | ---
int | Indicates that the conversion succeeded, failed, or was cancelled

### Implements

IDisposable