// fills the transparent pixels in the image with // the color of the (roughly) closest non-transparent neighbor pixel sclass ImageInfiller { settable BufferedImage inputImage; int[] pixels; PtBuffer queue; PtBuffer nextQueue; gettable BufferedImage outputImage; run { prepare(); } void prepare { pixels = pixelsFromBufferedImage(inputImage); } void oneRound { if (queue allPixels( } }