public override IObservable <Mat> Process(IObservable <Mat> source) { return(source.Select(input => { return input.GetRows(StartRow, EndRow.GetValueOrDefault(input.Rows)) .GetCols(StartCol, EndCol.GetValueOrDefault(input.Cols)); })); }
public void RowToRepeatAtTop(int StartRow, int EndRow = 0) { if (EndRow == 0) { EndRow = StartRow; } string RowRange = $"${StartRow.ToString()}:${EndRow.ToString()}"; ws.PageSetup.PrintTitleRows = RowRange; }
public override int GetHashCode() { int hash = 1; if (ProtocolVersion != 0) { hash ^= ProtocolVersion.GetHashCode(); } if (MessageType != 0) { hash ^= MessageType.GetHashCode(); } if (Side != 0) { hash ^= Side.GetHashCode(); } if (StartRow != 0) { hash ^= StartRow.GetHashCode(); } if (StartCol != 0) { hash ^= StartCol.GetHashCode(); } if (EndRow != 0) { hash ^= EndRow.GetHashCode(); } if (EndCol != 0) { hash ^= EndCol.GetHashCode(); } if (GameOutcome != 0) { hash ^= GameOutcome.GetHashCode(); } return(hash); }