- samples
- Buffer that holds the new channel sample.
- count
- Size of the channel sample buffer.
Visual Basic (Declaration) | |
---|---|
Overloads Public Function SetChannelSamples32( _ ByVal samples As IntPtr, _ ByVal count As Integer _ ) As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As DicomWaveformChannel Dim samples As IntPtr Dim count As Integer Dim value As Integer value = instance.SetChannelSamples32(samples, count) |
Parameters
- samples
- Buffer that holds the new channel sample.
- count
- Size of the channel sample buffer.
Return Value
The actual number of samples set for the channel.For an example, refer to DicomDataSet.WaveformGroupCount.
- This method sets the new samples for a channel. Before calling the SetChannelSamples32 method, be sure to call DicomWaveformGroup.SetSampleInterpretation to set the waveform sample interpretation.
- The number of samples actually set will be less than or equal to the "Number of samples per channel" (003A, 0010) in the multiplex group that represents the parent of this channel. To get that number, call the DicomWaveformGroup.GetNumberOfSamplesPerChannel method.
- In DICOM, a waveform channel can have either 8- or 16-bit samples (32-bit samples are not defined yet). When calling this method the data is automatically converted based on the "Waveform Sample Interpretation" (5400,1006). For 8-bit channels the "Waveform Sample Interpretation" (5400,1006) can either be is signed 8-bit linear DicomWaveformSampleInterpretationType.Signed8BitLinear, unsigned 8-bit linear DicomWaveformSampleInterpretationType.Unsigned8BitLinear, 8-bit mu-law DicomWaveformSampleInterpretationType.Mulaw8Bit or 8-bit A-law DicomWaveformSampleInterpretationType.Alaw8Bit. For 16-bit channels the "Waveform Sample Interpretation" can either be signed 16-bit linear DicomWaveformSampleInterpretationType.Signed16BitLinear or unsigned 16-bit linear DicomWaveformSampleInterpretationType.Unsigned8BitLinear. To get the waveform sample interpretation, use the DicomWaveformGroup.GetSampleInterpretation method.
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)