IndexHomepage^

Graphic Library

comfortably controlling LC-Displays

MCT developed a graphic library enabling programmers to execute complex graphic commands on LC-Displays.

The Borland Graphic Interface (BGI) was taken as a model. This library contains many efficient and easy to learn functions, from simple functions like setting a single pixel to functions that allow "pie slices" or three-dimensional bars including fill pattern to be drawn with one line of code. For text, three fixed fonts are built-in.

The MCT graphic library was developed specially for industrial use. The target hardware could for example be a MEGA332 with LC-Display, showing temperature curves etc.

The software however is not limited to certain LC-Displays. Even now up to 128 freely definable simultaneously usable colors are supported. Via five low-level functions the software can quickly be adapted to new LC-Displays. The graphic functions do not need to be changed or newly implemented.

The compatibility to the BGI has the advantage that many users know the commands already from Turbo-C or Turbo-Pascal. So, already existing programs can be ported without serious changes to a single board computer with LC-Display.

Samples of functions:

putpixellinelinerellinetorectanglecirclearcellipsedrawpolybarfillellipsepieslicefloodfillfillpolybar3douttext

-> Sample program
-> Programming own drivers

www.mct.net: Download
IndexHomepage^