@Override
	public void reshape(int width, int height) {
		if( this.width == width && this.height == height )
			return;

		if( isSubimage() )
			throw new IllegalArgumentException("Can't reshape subimage");

		for( int i = 0; i < bands.length; i++ ) {
			bands[i].reshape(width,height);
		}

		this.startIndex = 0;
		this.stride = width;
		this.width = width;
		this.height = height;
	}
@ Override public void reshape ( int width , int height ) { if ( this . width == width && this . height == height ) return ; if ( isSubimage ( ) ) throw new IllegalArgumentException ( "Can't reshape subimage" ) ; for ( int i = 0 ; i < bands . length ; i ++ ) { bands [ i ] . reshape ( width , height ) ; } this . startIndex = 0 ; this . stride = width ; this . width = width ; this . height = height ; }
Changes the image's width and height without declaring new memory.  If the internal array
is not large enough to store the new image an IllegalArgumentException is thrown.

@param width The new width.
@param height The new height.