need to stitch pixel segments & save as jpg file

I’m looking to reimburse someone to assist me with the following:

I need a way to capture the graphics on the screen of the OpenGL application and save it to a local jpg file. However, since there is a lot of objects on the screen, the scene to be captured extends beyond the screen resolution width. (I’m not looking for screen capturing software since this needs to be built in to the application).

So far, using OpenGL I can capture the pixel data for individual separate image pieces.

Examples:

11112222
11112222
33334444
33334444

111122223333
111122223333
444455556666
444455556666

etc …

However, I need to find someone who can create a function that will stitch these different pieces together and save a complete jpg file to the local hard drive.

This is the format for the function that needs to be created:
addToJpg(iX, iY, void* pixelData);

If you can do this, then please provide estimate on how long you think it will take, or if you’ve already completed this task for a previous project already. I will reimburse for completed work via online email money transfer.

(Please contact me prior to starting this task since I want to avoid two people completing the task at the same time).

Thanks,
Mark
(markmills87@live.com)