static BWImage img_bw_pixelMul(float f, BWImage a) { int w = a.w(), h = a.h(); BWImage b = new BWImage(w, h); for y to h: for x to w: b.setPixel(x, y, a.getPixel(x, y)*f); ret b; }