/// <summary> /// Returns all spectral values at a specified row and column index. /// </summary> /// <param name="rowIndex">The zero-based row index of the values.</param> /// <param name="columnIndex">The zero-based column index of the values.</param> /// <returns>The array containing the spectral values for each band at the specified index.</returns> protected override UInt32[] ApplyGetValues(Int32 rowIndex, Int32 columnIndex) { if (_isSequentialService) { return(_service.ReadValueSequence(rowIndex, columnIndex, 0, NumberOfBands)); } else { UInt32[] values = new UInt32[NumberOfBands]; for (Int32 bandIndex = 0; bandIndex < NumberOfBands; bandIndex++) { values[bandIndex] = _service.ReadValue(rowIndex, columnIndex, bandIndex); } return(values); } }