Adam,
If you are using Java 1.4, the you should be able to use the ImageIO apis to
save the file in a variety of formats. E.G. I use both JPEG and PNG for my
screen shots.
I get my Canvas3D as a BufferedImage (bi), and then use:
File f = new File(fileName);
try {
ImageIO.write(bi,"jpg",f);
} catch (IOException ioe) {
ioe.printStackTrace();
}
Changing 'jpg' to 'png' in the above works fine.
Rob
Adam Sosnowski wrote:
Hi,
Are there any other file formats, besides JPEG, in which screen capture from Canvas3D can easily be thrown?
Adam
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
--
Rob Nugent
Sun Microsystems, Southampton, UK
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".