StartVectorDrawing()

Syntax

Result = StartVectorDrawing(Output)
Description
Prepares the vector drawing library to draw to the specified output.

Parameters

Output The output to draw on. These functions can be used to get an output for vector drawing:

WindowVectorOutput(): Drawing will be rendered directly on the Window
ImageVectorOutput(): Drawing will be rendered directly on the Image data (see CreateImage())
PrinterVectorOutput(): Drawing will be rendered directly on the Printer
CanvasVectorOutput(): Drawing will be rendered directly on the CanvasGadget()
PdfVectorOutput(): Drawing will be rendered to a PDF file (Linux and OSX only)
SvgVectorOutput(): Drawing will be rendered to an SVG file (Linux only)

Return value

Returns nonzero if drawing is possible or zero if the operation failed.

Remarks

Drawing must be finished with StopVectorDrawing().

If "Create thread-safe executable" is enabled in the compiler options then every thread has its own current drawing output, which means two threads can do drawing on separate outputs at the same time.

See Also

StopVectorDrawing()

Supported OS

All

<- SkewCoordinates() - VectorDrawing Index - StopVectorDrawing() ->