xwd (manual page) is a part of XFree, so chances are high you already have it installed. It can dump screenshots to .xwd files. This is not a common format. After taking a screenshot using xwd -root -out test.xwd the only programs I found capable of opening it were Gimp and xwud (manual page).