Xbasic

POLY_BEZIER Function

Syntax

V POLY_BEZIER(N XPos,N YPos)

Arguments

XPos

The horizontal coordinate of the last point of the bezier curve.

YPos

The vertical coordinate of the last point of the bezier curve.

Description

Finish and draw the a Bezier curve defined by a polygon.

Discussion

POLY_BEZIER() finishes and draws a smooth bezier curve through the points of the polygon.

images/GR_poly_bezier.gif

Example

ui_bitmap_create("test",4,2)
ui_bitmap_draw("test",<<%code%
inner_Rect(0,0,4,2)
set_brush("green")
set_pen("black")
start_poly(2, .5)
lineto(3, 2)
lineto(1, 1.5)
poly_bezier(2, .5)
%code%)
ui_dlg_box("","{image=test}")

Limitations

Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().

See Also