StartDrawing()

Syntax

Result = StartDrawing(OutputID)
Description
Change the current drawing output to the specified output. After setting this, all drawing functions are rendered to this output.

Parameters

OutputID The output to draw on. It can be obtained with the following functions:

SpriteOutput(): Graphics will be rendered directly on the Sprite (for games)
ImageOutput(): Graphics will be rendered directly on the Image data (see CreateImage())
CanvasOutput(): Graphics will be rendered directly on the CanvasGadget()

Return value

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

Remarks

Once all drawing operations are finished, StopDrawing() must be called.

See Also

StopDrawing()

Supported OS

All

<- RoundBox() - 2DDrawing Index - StopDrawing() ->