Visual Basic (Declaration) | |
---|---|
Public Function GetChannelSamplesPtr() As IntPtr |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public IntPtr GetChannelSamplesPtr() |
Managed Extensions for C++ | |
---|---|
public: IntPtr GetChannelSamplesPtr(); |
C++/CLI | |
---|---|
public: IntPtr GetChannelSamplesPtr(); |
Return Value
A buffer that holds the samples (data) for a waveform channel.For an example, refer to WaveformGroupCount.
This method returns a pointer to a buffer that holds the channel samples (data). Please note that the data is always encapsulated as 32-bit regardless of the bits allocated for the channel (8- or 16-bit). You can tell if the data for the channel is 8- or 16-bit from the waveform sample interpretation. 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 GetSampleInterpretation method.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family