if (iArray == null) { iArray = new int[size]; } for (int yy = y; yy < (y + h); yy++) { for (int xx = x; xx < (x + w); xx++) {
if (iArray == null) iArray = new int[size]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) {
	public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) {		int size = w * h;		int outOffset = 0;		if (iArray == null) {			iArray = new int[size];		}		for (int yy = y; yy < (y + h); yy++) {			for (int xx = x; xx < (x + w); xx++) {				iArray[outOffset++] = getSample(xx, yy, b, data);			}		}		return iArray;	}