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