The Artima Developer Community
Sponsored Link

Design Forum
Help with C++

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Irina Naskinova

Posts: 1
Nickname: amrita
Registered: Jul, 2005

Help with C++ Posted: Jul 6, 2005 7:01 AM
Reply to this message Reply
Advertisement
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).

Thanks a lot!

Topic: Populating Tree and List Views Previous Topic   Next Topic Topic: Visual Paradigm for UML 5.0 Released

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use