@Override public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scanSize) { LOGGER.debug("Storing row {} of {} ({}%)", new Object[] {y, height, ((double) y / height) * 100.0}); if (y >= (yy + hh)) { imageComplete(0); return; } else if (y < yy) return; try { tiles.add(pixels, x, y, w, h); } catch (CodecException e) { LOGGER.debug("", e); } catch (IOException e) { LOGGER.debug("", e); } }
@Override public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scanSize) { LOGGER.debug("Storing row {} of {} ({}%)", new Object[] {y, (yy + hh), ((double) y / (yy + hh)) * 100.0}); if (y >= (yy + hh)) { imageComplete(0); return; } else if (y < yy) return; try { tiles.add(pixels, x, y, w, h); } catch (CodecException e) { LOGGER.debug("", e); } catch (IOException e) { LOGGER.debug("", e); } }