setInt method

void setInt(
  1. int x,
  2. int y,
  3. int v
)

Set the int value of the sample at the coordinates x,y for INT and UINT slices.

Implementation

void setInt(int x, int y, int v) {
  final pi = y * width + x;
  data[pi] = v;
}