note uses .net3.5 framework. no i cannot use any class from System.Windows.Media
Overview
I've found the need to take 4 screenshots of content on my screen.
The content is spread across an area larger then my screen area which is 1618px wide and 696px high.
I automate the process of taking screenshots of the 4 areas then i encode the pixels i read from the screen to a byte array with .png data.
I then use System.IO.File.WriteAllBytes to output actual png images to a folder at "Path"
The problem
i do get all my png images output in an folder and i can successfully view all 4 images . However i need the images to be one large image.
i.e a 3236 x by 1392px image as shown here.
in the image you just saw four 1618px by and 696px squares labeled 1 to 4. this represent the screenshots and order in which they were taken.
Its this same exact order in which i wish the images to be combines and output as a single 3236 x by 1392px image.
in this class. lets assume that the byte data for image 1 ,2,3 and 4 are already assigned to their respective byte arrays.
class SimplePseudoExample
{
private byte[] bytes1;
private byte[] bytes2;
private byte[] bytes3;
private byte[] bytes4;
private byte FinalByes[];
void CreateTheSingleLargeImage()
{
System.IO.File.WriteAllBytes("Path"+".png",FinalByes);
}
}
How can i get my single large image output ?