示例#1
0
 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));
     }));
 }
示例#2
0
        public void RowToRepeatAtTop(int StartRow, int EndRow = 0)
        {
            if (EndRow == 0)
            {
                EndRow = StartRow;
            }
            string RowRange = $"${StartRow.ToString()}:${EndRow.ToString()}";

            ws.PageSetup.PrintTitleRows = RowRange;
        }
示例#3
0
        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);
        }