You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Graphics Library

9.0

Graphics Library

A graphics context is a module that has a handle to the script’s graphics output window and a library of graphics routines that are used to draw on the window. A graphics context is supplied to the script on.paint event handler each time the window needs to be redrawn.

The graphics context employs a pixel-based coordinate system with the origin in the upper left corner of the drawing window.

Related Topics

clipRect

drawArc

drawImage

drawLine

drawPolyLine

drawRect

drawString

fillArc

fillPolygon

fillRect

getStringHeight

getStringWidth

setColorRGB

setFont

setPen