en:software:qview:qview_6:qcl_library:vi10addcircle

This translation is older than the original page and might be outdated. See what has changed.

VI10AddCircle

V = Vector

I = Image

Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions).

The VI10AddCircle function add the CIRCLE control point in the queue to be processed instructions in the Buffer to perform the drawing.
The CIRCLE command creates a circle with Center positioned at coordinates and radius equal to the current parameter “Radius” is passed to the function.
The same coordinates passed to the function, it also set then as current coordinates.

Buffer

VI10AddCircle (awBuffer, Radius, Fill)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN ARRSYS /
ARRGBL
awBuffer W Array that serves as a buffer for instructions/data
IN CONST/
GLOBAL
Radius W Variable containing the value of the radius of the circle you want to draw.
IN CONST/
GLOBAL
Fill W Variable containing the information for the area fill inside of the rectangle.
Fill = 0: Inside area not filled with color
Fill = 1 :Indoor area filled with color

Example

TASK_00

MAIN:
 
VI10InitBuffer (awBuffer)			;Initializes the Buffer
 
VI10AddPen (awBuffer, Color)			;Adds the PEN command
 
VI10AddMove (awBuffer, Coord_X, Coord_Y)	;Adds the MOVE command
 
Radius = 20					;Sets the radius of the circumference
 
Fill = 0					;Sets the secure area not filled
 
VI10AddCircle (awBuffer, Radius, Fill)		;Adds the CIRCLE command
 
.... 
 
WAIT 1
JUMP MAIN
 
END

Note

  • Last modified: 2019/08/29 17:01