Clear the draw window

Description

  Clear the draw window using current background color.

The draw window is a partial rectangle area on the full screen, all following drawing on screen will be remapped to this window

Usage:

Direct:

 "WINCL"

Arduino:

void cleanDrawWindow(void)

C:

void Digole_cleanDrawWindow(void)

Parameters:

none

Return:

none

Example (Arduino):

mydisp.setDrawWindow(50,50,100,200); //set a draw window the top-left position at (50,50), width is 100px,height is 200px

mydisp.setBgColor(0B00000001); //set background color to light-blue
mydisp.cleanDrawWindow();
mydisp.drawStr(1,1,"Hello World!"); //display white "Hello World!" at position (1,1) in the draw window on the light blue background

Example(direct)

serial.writeString("WINCL"); //set the draw window to full screen

Changelog

Version Description
   

See Also

Set draw window

Unset draw window

Set background color