valueFromID static method

Halftone valueFromID(
  1. int id
)

Implementation

static Halftone valueFromID(int id) {
  for (int i = 0; i < _values.length; ++i) {
    Halftone num = _values[i];
    if (num.getId() == id) {
      return num;
    }
  }
  return PATTERNDITHER;
}