/* Save the pixels of a rectangle part of the LCD into a RAM variable. */
void LCD_RectRead(u16 x, u16 y, u16 width, u16 height, u8 *bmp)
/* Save the pixels of a rectangle part of the LCD into a RAM variable. */
void LCD_RectRead(u16 x, u16 y, u16 width, u16 height, u8 *bmp)
{
   int i;
   int bytesize = (width * height) *2;
   LCD_SetRect_For_Cmd( x, y, width, height );
   LCD_SendLCDCmd(ST7637_RAMRD);
   LCD_ReadLCDData();
   for( i = 0; i < bytesize; i++ )
      {
      *bmp++ = LCD_ReadLCDData();
      }
   }