ImageDrawCubicCurve

Draws a cubic curve.

ImageDrawCubicCurve( image, x1, y1, ctrlx1, ctrly1, ctrlx2, ctrly2, x2, y2 )

Returns: void

Argument Description
image
any, required

The image on which this operation is performed.

Alias: name

x1
number, required

The x coordinate of the start point of the cubic curve segment.

y1
number, required

The y coordinate of the start point of the cubic curve segment.

ctrlx1
number, required

The x coordinate of the first control point of the cubic curve segment.

ctrly1
number, required

The y coordinate of the first control point of the cubic curve segment.

ctrlx2
number, required

The x coordinate of the second control point of the cubic curve segment.

ctrly2
number, required

The y coordinate of the second control point of the cubic curve segment.

x2
number, required

The x coordinate of the end point of the cubic curve segment.

y2
number, required

The y coordinate of the end point of the cubic curve segment.

Examples

img=imageNew("",100,100,"RGB","3c6382");
imageDrawCubicCurve(img,0,0,45,15,50,75,0,100);
cfimage(action="writeToBrowser",source=img);

See also