Files
lcd-image-converter/resources/scan_scripts/scan_left2right_forward_band.js
2013-10-05 21:23:37 +06:00

17 lines
280 B
JavaScript

/*
* left to right
* forward
* bands
*/
var bandY = 0;
do {
for (var x = 0; x < image.width; x++) {
for (var y = 0; y < image.bandSize; y++) {
image.addPoint(x, bandY + y);
}
}
bandY += image.bandSize;
} while (bandY < image.height);