Set draw window to full screen

Description

  Restore the draw window to full screen.

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:

 "RSTDW"

Arduino:

void resetDrawWindow(void)

C:

void Digole_resetDrawWindow(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.drawStr(1,1,"Hello World!"); //display "Hello World!" at position (1,1) in the draw window

mydisp.resetDrawWindow();
mydisp.drawStr(1,1,"Hello World!"); //display "Hello World!" at position(1,1) in the full screen

Example(direct)

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

Changelog

Version Description
   

See Also

Set draw window

Clear draw window