Hello all, I am new to C++, having a Java backgraound. Can you help me with the following task: Let's have a screen with the dimension of Width x Height pixels. Each pixel is stored on 1 byte (0x00 is white, OxFF is black, etc. ) , The pixels are stored l i n e a r l y in the video memory, starting with the upper-left corner of the screen. Write the followinq function:
void CopyScreenRegion (unsigned char *screen, int sx, int sy, int sW, int sH, int dx, int dy)
that copies a screen region starting at ( s x , sy) coordinates and has the (sW, s H ) dimensions to the coordinated given by (dx, dy).