This method draws a bezier curve in the designated object (the screen, printer, or image data). This method is recommended when using scripting or other languages that require variant types.
Parameters
Name | Explanation |
---|---|
DeviceValue | The device context or the raster image data (i.e. Hdc or ImageHandle) depending on the DeviceMode |
x,y | An array of x and y coordinate values defining
points of the polygon
In Visual Basic, Dim x(0 To 2) As Integer then set x(0) |
DeviceMode | If 0 (ikScreen), then the bezier curve will be drawn in pixel units. If 1 (ikPrinter), the bezier curve will be drawn in 0.1mm units. If 2 (ikMemoryHandle), the bezier curve will be drawn (in pixel units) to the image data according to the DeviceValue parameter |
In Visual Basic the following constants can be used: (ikScreen = 0, ikPrinter = 1, ikMemoryHandle = 2).
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The PolyBezier method draws a bezier curve in the designated object. This method is recommended when using scripting or other languages that require variant types. The initial bezier curve consists of 4 points, a start point, 2 control points, and an endpoint. Thereafter the bezier curve consists of 3 points (the control points and endpoint).
To execute this method, the following properties should be set PenWidth, PenStyle, PenMode, PenColor, Transparent, and BackColor. The BackColor property is enabled when the Transparent property is False and the pen is set to draw solid lines.
The value contained in the Points parameter must be (3 X the number of beziers) + a start point
Also see the PolyBezier method.
If the DeviceMode parameter is 0 or2 then x and y parameters are in pixel units.
If the DeviceMode parameter is 1 then x and y parameters are in 0.1mm units.