static L pixelsInImage(BufferedImage image) { ret pixelsInImage(image.getWidth(), image.getHeight()); } static L pixelsInImage(WidthAndHeight etc size) { int h = size.h(), w = size.w(); ret listFromFunction(w*h, idx -> pt(idx % w, idx/w)); }