This is not quite what I am looking for. I want the capturing fully controled by my program, without any human interaction, so printscreen does not work (I don't press buttons ;-)
However to capture the whole screen instead of an area is okay with me, I can process it after.