public GMOperation source ( final File file , @ CheckForNull final Integer width , @ CheckForNull final Integer height ) throws IOException { if ( file != null && ! file . exists ( ) ) { throw new IOException ( "Source file '" + file + "' does not exist" ) ; } if ( ( width != null ) && ( height != null ) && ( width > 0 ) && ( height > 0 ) ) { size ( width , height ) ; } return addImage ( file ) ; }
Specifies the source image to convert .