I think you can get a Java RenderedImage object through Java Georaster API, and then you can use the following java API to get an image file.
static boolean ImageIO.write(RenderedImage im, String formatName, File output) throws IOException
Okay, I'll read some documentation about that. Thanks.
But it's not possible to do that with MapViewer ?