Okay this is what I have:
// Takes screenshot of the staff
void PianoStaff::Screenshot() const
{
dbSetSpriteImage(STAFF_ID, STAFF_IMAGE_ID);
dbGetImage(STAFF_IMAGE_ID, 0, 0, dbScreenWidth(), dbScreenHeight()/2); // gets the image of the upper half of screen
dbSaveImage("Screenshot.bmp", SCREENSHOT_IMAGE_ID); // saves image as Screenshot.bmp
}
This is -almost- there. I set my staff sprite as an image, then I can use that to get image and save it.
However, there are up to 12 other sprites (the notes on the staff) that also need to be saved, how can I combine the staff sprite and the note sprites into one image?
My screenshot IS working appropriately for the staff, but now I don't know how to expand it to all 13 (staff+12 notes) sprites