get method
- Pos pos
Returns the pixel at the given position.
If outside the bounds of the buffer, returns a suitable zero value.
Implementation
T get(Pos pos) => contains(pos) ? getUnsafe(pos) : format.zero;
Returns the pixel at the given position.
If outside the bounds of the buffer, returns a suitable zero value.
T get(Pos pos) => contains(pos) ? getUnsafe(pos) : format.zero;