Export active viewport to picture

 From:  krass
6111.1 
Michael, my compliments!
I have a very pressing question: is there a program to export the active viewport to a bitmap (JPG, BMP, etc.)
And if not then is it possible to implement it in any way.
Or may already have a script or plugin that does this?