Batch Edit: Load Multiple images from data folder

It seems that loadPixels() cannot invoke on the array type PImage.

I also tried // the rest of the code that would use the hatch, and the images are never drawn to the screen with. Procesing is much more difficult writing than I thought!

for (int i = 0; i < myImg.length; i++) {
myImg[i] = loadImage(“DSC0” + i + “.JPG”);
}

myImg.loadPixels();//allows us to access pixel array
for(int x = 0; x < myImg.width; x+=step){
for(int y = 0; y< myImg.height; y+=step){
int i = floor(x+ymyImg.width);
float br = brightness(myImg.pixels[i]);
if (br > 0){
stroke(myImg.pixels[i]);
strokeWeight(1);
float factor = (br/255)
(maxlength - minlength) +minlength;
float x1 = x - factor *3.8;
float y1 = y - factor /2;
line(x,y,x1,y1);
}
}
}
myImg.updatePixels();
saveFrame();
}