protected void generateBufferedImage ( TranscoderInput in , int w , int h ) throws TranscoderException { BufferedImageTranscoder t = new BufferedImageTranscoder ( ) ; if ( w != 0 && h != 0 ) { t . setDimensions ( w , h ) ; } t . transcode ( in , null ) ; bufferedImage = t . getBufferedImage ( ) ; width = bufferedImage . getWidth ( ) ; height = bufferedImage . getHeight ( ) ; }
Generate the BufferedImage .