Gambas Documentation - /comp/gb.sdl/draw/begin

/comp/gb.sdl/draw/begin

# Draw.Begin (gb.sdl)

Static Sub Begin ( Device As Object )

Begins a new drawing. The device can be one of the following objects:

- A Window,

- Or an Image (currently disabled).

Note that calls to this method can be nested.

You must not call this method inside the Draw event handler of a Window, as Gambas calls it for you, and initializes the drawing properties correctly.