I found the this to export the current view as image. The following code works and was accepted as answer.
c = iface.activeComposers().composition()
image = c.printPageAsRaster(0)
Sadly the images produced by this code are not georeferenced, even if I use different image formats.
How is it possible to programmatically export current view as georeferenced image with QGis?