Accusoft ImagXpress 13
DrawCurve Method
The x-coordinate (in pixels) for the starting point of the Bezier curve.
The y-coordinate (in pixels) for the starting point of the Bezier curve.
The x-coordinate (in pixels) for the first control point of the Bezier curve.
The y-coordinate (in pixels) for the first controlpoint of the Bezier curve.
The x-coordinate (in pixels) for the second control point of the Bezier curve.
The y-coordinate (in pixels) for the second point of the Bezier curve.
The x-coordinate (in pixels) for the end point of the Bezier curve.
The y-coordinate (in pixels) for the end point of the Bezier curve.

The RGB color of the circles outline. You can use the RGB function to specify the color.

Note: Value specified must be in a valid OLE_COLOR range.

Description
Draws a Bezier curve onto the image.
Syntax
Visual Basic
Public Sub DrawCurve( _
   ByVal x1 As Long, _
   ByVal y1 As Long, _
   ByVal x2 As Long, _
   ByVal y2 As Long, _
   ByVal x3 As Long, _
   ByVal y3 As Long, _
   ByVal x4 As Long, _
   ByVal y4 As Long, _
   ByVal Color As OLE_COLOR _
) 
Parameters
x1
The x-coordinate (in pixels) for the starting point of the Bezier curve.
y1
The y-coordinate (in pixels) for the starting point of the Bezier curve.
x2
The x-coordinate (in pixels) for the first control point of the Bezier curve.
y2
The y-coordinate (in pixels) for the first controlpoint of the Bezier curve.
x3
The x-coordinate (in pixels) for the second control point of the Bezier curve.
y3
The y-coordinate (in pixels) for the second point of the Bezier curve.
x4
The x-coordinate (in pixels) for the end point of the Bezier curve.
y4
The y-coordinate (in pixels) for the end point of the Bezier curve.
Color

The RGB color of the circles outline. You can use the RGB function to specify the color.

Note: Value specified must be in a valid OLE_COLOR range.

Remarks

A Bezier curve is a simple cubic equation originally developed by Pierre Bzier in the 1970's for CAD/CAM operations. It became the under-pinnings for the Adobe PostScript drawing model.

The curve is drawn from the starting point (x1, y1) to the end point (x4, y4) by using the two control points (x2, y2) and (x3, y3).

The width of the line used to draw the curve depends on the setting of the DrawWidth property. The way the curve is drawn on the background depends on the setting of the DrawMode and DrawStyle properties.

This method draws into the control's DIB.

See Also

ImagXpress Object  | ImagXpress Members  | DrawArc Method  | DrawMode Property  | DrawStyle Property  | DrawWidth Property

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback