code: public void setMatrix(int[] matrix) {
  		this.matrix = matrix;
  		sum = 0;
  		for (int i = 0; i < matrix.length; i++)
  			sum += matrix[i];
  	}
docs: Set the dither matrix.
  @param matrix the dither matrix
  @see #getMatrix