/** * Helper method to properlty create a RomioPixelBuffer. * * @param pixelsFilePath * @param pixels * @param allowModification */ protected PixelBuffer createRomioPixelBuffer(String pixelsFilePath, Pixels pixels, boolean allowModification) { return new RomioPixelBuffer(pixelsFilePath, pixels, allowModification); }
/** * Creates a PixelBuffer for a given pixels set. * * @param pixels Pixels set to create a pixel buffer for. * @return Allocated pixel buffer ready to be used. * @throws IOException If there is an I/O error creating the pixel buffer * backing file. */ public PixelBuffer createPixelBuffer(Pixels pixels) throws IOException { RomioPixelBuffer pixbuf = new RomioPixelBuffer(getPixelsPath(pixels .getId()), pixels, true); initPixelBuffer(pixbuf); return pixbuf; }