Function BitMap.setBit

Sets the bitmap's element at the specified position, to the specified value.

void setBit (
  const(Vector2) position,
  const(bool) bit
) nothrow @nogc;