public static Rectangle getTile ( int width , int height , int tileWidth , int tileHeight , int tileIndex ) { Rectangle bounds = new Rectangle ( ) ; getTile ( width , height , tileWidth , tileHeight , tileIndex , bounds ) ; return bounds ; }
Returns the rectangle containing the specified tile in the supplied larger rectangle . Tiles go from left to right top to bottom .