// Only is faster if #pixels
// Note that setBytePixels modifies the raster directly
// so we must mark it as changed afterwards
setBytePixels(x, y, w, h, pix, off, scansize, bt,
bt.getDataOffset(0));
bt.markDirty();
}
}
else {
for (int yoff=y; yoff < y+h; yoff++, lineOff += scansize) {
poff = lineOff;