Graphics.DrawObject
From Xojo Documentation
Method
Graphics.DrawObject(object2D As Object2D, [deltaX As Double, deltaY As Double])
Supported for all project types and targets.
Supported for all project types and targets.
Draws the passed Object2D object into the Graphics object. The optional parameters DeltaX and DeltaY are offsets from the top-left corner of the Graphics object to the top-left corner of the Object.
Notes
If Object is an OvalShape, then the offsets are from the top-left corner of the Graphics object to the center of the OvalShape.
Sample Code
The following method is in the Paint event of a Window. It draws a simple curve. The negative value of ControlY(0) places the control point above the imaginary straight line from x,y to x2,y2.