@Override
    public void setValue(final int x, final int y, final int i, final float value) {
        data[checkCoordinatesAndComputeIndex(x, y, i)] = (int) value;
    }
Sets the value stored at the specified raster coordinates.

@param x     integer coordinate in the columnar direction
@param y     integer coordinate in the row direction
@param i     integer sample index (for data sets giving multiple samples per raster cell).
@param value the value to be stored at the specified location; potentially a Float&#46;NaN.
src/main/java/org/apache/commons/imaging/formats/tiff/TiffRasterDataInt.java