Capturing Screen as Bitmap Image in C#

The easiest way for taking screen snapshot in C# is given in the following code.

            Rectangle workingArea = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea;
            Bitmap screenShot = new Bitmap(workingArea.Width, workingArea.Height);

            Graphics gr = Graphics.FromImage(screenShot);

            gr.CopyFromScreen(0, 0, 0, 0, workingArea.Size);

            return screenShot;

In the above code, first a rectangle is created which equal to the size of the primary screen.
Then a bitmap is created which will store the pixels for the snapshot image.
The Graphics object is created which will store and perform operations on the bitmap object we just created.
The CopyFromScreen function captures the screen, copying all the color pixels to the bitmap of the Graphics object. The parameters to the function are about from where the copying will start in the source and to where it will go in the target. The first two are x and y are starting coordinates for the source and the third and fourth are about the starting coordinates for the target location. The last parameter is about the size of the rectangular region which will be copied, which consist of width and height.

Pakistan Army is Popular in Pakistan because…

From beginning, India is a constant threat to Pakistan and its sovereignty. India has exploited every opportunity to opportunity Pakistan, which made Pak Army more popular in Pakistani people.

Until now, it is the most deciplined disciplined organised, and well trusted department in Pakistan. It has arrived to help in all bad situations, and helped more than expected. It has left all the other organizations very behind, which is apparent in the current flood situation.

Though, in politics, Pakistan Army record is not too good, but mainly it is due to the some adventurous generals. Due to the few generals in past, it is wrong to blame the whole army for everything.

One the other side, when we see the performance of Pakistan Army in its own field, it is one of the best military in the world. In limited budget and equipment, Pakistan Army defended Pakistan from India on one side, and on the other side it fought against the terrorists in Swat, Dir, and Bunir districts. For anti-terrorism, Pakistan Army was not properly trained, but its performance was much higher than those of US and NATO.

US Army and NATO have the most advanced military and related equipment in the world and they are fighting the Afghan Taliban who use the out-dated weapons, and still Afghan Taliban are in winning position. On the other hand, Pakistani Taliban had unexpectedly advanced guns and communication systems and Pakistan Army is not too advanced in weapons and communications, but still Pakistan Army was able to eliminate the Pakistani Taliban. Their leaders escaped to Afghanistan besides the sealed border by NATO and US Army.

All of this makes Pakistan Army one of the best military in the world and very popular in Pakistani people.