Move contents of a rectangle area on the draw window to other location. The offset is a signed Byte, value from -128 to +127, the offset is the count of number of the pixels.
|
Direct: |
"MAxywhXoffsetYoffset" |
|
Arduino: |
void moveArea(unsigned int x, unsigned int y, unsigned int w, unsigned int h, char Xoffset, char Yoffset) |
|
C: |
void Digole_moveArea(unsigned int x, unsigned int y, unsigned int w, unsigned int h, char Xoffset, char Yoffset) |
x, y
The pixel position of top-left of the area.
w, h
The pixel size of the width and height of the area.
Xoffset, Yoffset
The signed char value of the offset that the area move to.
none
NOTE: if the value of x,y,w or h greater than "254", then use 2 bytes format: the first byte is fix of 255, then the second byte is the value minus 255. eg.300=255+45, so, "\xFF\x2D" is the result.
This schedule is in order to compatible small displays, which the width and height is less than 255 pixels
Warning:The 4.3" IPS modules are always use 2 bytes regular integrate format.
mydisp.moveArea(20,30,30,30,-10,10); //move screan area on draw window at (20,30), width=30, height=30 to position: (10,40)
serial.writeString("MA\x14\x1E\x1E\x1E\xF6\x0A");//move screan area on draw window at (20,30), width=30, height=30 to position: (10,40)
| Version | Description |
|---|---|