/** * Sets the pixel intensity value of the pixel at a given offset within * the backing buffer. This method takes into account bytes per pixel. * * @param offset The relative offset (taking into account the number of * bytes per pixel) within the backing buffer. * @param value Pixel value to set. */ public void setPixelValue(int offset, double value) { setPixelValueDirect(offset * bytesPerPixel, value); }