public void toArgb(int[] dest, short r, short g, short b, int div) {
			assert dest.length >= w * h;
			for (int i = w * h - 1; i >= 0; --i) {
				short sr = (short) (this.r[i] * r / div);
				short sg = (short) (this.g[i] * g / div);
				short sb = (short) (this.b[i] * b / div);
				if( sr < 0 || sr > 255 ) sr = 255;
				if( sg < 0 || sg > 255 ) sg = 255;
				if( sb < 0 || sb > 255 ) sb = 255;
				dest[i] = 0xFF000000 | (sr << 16) | (sg << 8) | sb;
			}
		}