adb shell screencap

The screencap command is a shell utility for taking a screenshot of a device display

adb shell screencap /mnt/sdcard/Download/test.png
Notes: If FILENAME is not given, the results will be printed to stdout.

To copy screenshot from Android Device.

adb pull /mnt/sdcard/Download/test.png test.png