示例#1
0
 /// <summary>
 /// Sets all spectral values at a specified row and column index.
 /// </summary>
 /// <param name="rowIndex">The zero-based row index of the value.</param>
 /// <param name="columnIndex">The zero-based column index of the value.</param>
 /// <param name="spectralValues">The array containing the spectral values for each band.</param>
 protected override void ApplySetFloatValues(Int32 rowIndex, Int32 columnIndex, Double[] spectralValues)
 {
     if (_isSequentialService)
     {
         _service.WriteFloatValueSequence(rowIndex, columnIndex, 0, spectralValues);
     }
     else
     {
         for (Int32 bandIndex = 0; bandIndex < spectralValues.Length; bandIndex++)
         {
             _service.WriteFloatValue(rowIndex, columnIndex, bandIndex, spectralValues[bandIndex]);
         }
     }
 }