Device related functions

The relevant functions are as follows.

Function or data type Description
cleardevice Clear the drawing device.
initgraph Initializes the graphics window.
closegraph Closes the graphics window.
getaspectratio Get current scaling factor.
setaspectratio Set current scaling factor.
graphdefaults Restores the drawing environment as the default value.
setorigin Set the coordinate origin point.
setcliprgn Set the cropping area of current drawing device.
clearcliprgn Clear the cropping area.
(贡献者:Krissi  编辑