public GMOperation rotate ( final double degrees , final RotationAnnotation annotation ) { if ( annotation == null ) { throw new IllegalArgumentException ( "Rotation annotation must be defined" ) ; } final List < String > args = getCmdArgs ( ) ; args . add ( "-rotate" ) ; args . add ( String . format ( Locale . ENGLISH , "%.1f%s" , degrees , annotation . asAnnotation ( ) ) ) ; return this ; }
Rotates the image with empty triangles back - filled using default background color .