public ThumborUrlBuilder crop ( int top , int left , int bottom , int right ) { if ( top < 0 ) { throw new IllegalArgumentException ( "Top must be greater or equal to zero." ) ; } if ( left < 0 ) { throw new IllegalArgumentException ( "Left must be greater or equal to zero." ) ; } if ( bottom < 1 || bottom <= top ) { throw new IllegalArgumentException ( "Bottom must be greater than zero and top." ) ; } if ( right < 1 || right <= left ) { throw new IllegalArgumentException ( "Right must be greater than zero and left." ) ; } hasCrop = true ; cropTop = top ; cropLeft = left ; cropBottom = bottom ; cropRight = right ; return this ; }
Crop the image between two points .