Rectangle imageBounds = new Rectangle(0, 0, tf.imageWidth, tf.imageHeight);
for ( int tile = 0; tile < tf.tiles; tile++ ) {
if ( thread != null && thread.isCanceled() )
throw new UserCanceledException();
final int tileX = tf.tiled ? tile % maxTileX : 0;
final int tileY = tf.tiled ? tile / maxTileX : tile;
// The actual tile bounds, clipping on the image bounds
Rectangle tileBounds = new Rectangle(tileX * tf.tiffTileWidth,