public int XToTileX(int x) {
        return XToTileX(x, getTileGridXOffset(), getTileWidth());
    }
Converts a pixel's X coordinate into a horizontal tile index.
This is a convenience method.  No attempt is made to detect
out-of-range coordinates.

@param x the X coordinate of a pixel.
@return the X index of the tile containing the pixel.
plugins/svg-plugin/batik-codec-fix/src/main/java/org/apache/batik/ext/awt/image/codec/util/SimpleRenderedImage.java