protected void CheckBounds(int channel) { if (channel < 0 || channel >= Pixels) throw new ArgumentOutOfRangeException("channel"); }