if you have graphics/imlib2 installed, you can use
imlib2_grab <filename>.<extension>
; this will take a screenshot of the entire screen. I don't know if you can select a specific window or screen portion.