writes the drawing to the specified file . this method ensures that all figures of the drawing are visible on the image . concode_field_sep String fileExtension concode_elem_sep String formatName concode_elem_sep String description concode_elem_sep int imageType concode_field_sep BufferedImage toImage concode_elem_sep BufferedImage toImage concode_elem_sep void setRenderingHints concode_elem_sep String getFileExtension concode_elem_sep JComponent getOutputFormatAccessory concode_elem_sep Transferable createTransferable concode_elem_sep javax.swing.filechooser.FileFilter getFileFilter
void function ( File arg0 , Drawing arg1 ) { BufferedOutputStream loc0 = new BufferedOutputStream ( new FileOutputStream ( arg0 ) ) ; try { write ( loc0 , arg1 ) ; } finally { loc0 . close ( ) ; } }