Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
GetBinaryValue(DicomElement,Int32) Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class > GetBinaryValue Method : GetBinaryValue(DicomElement,Int32) Method



element
An item in the Data Set.
length
Number of bytes, from the binary value, to retrieve.
element
An item in the Data Set.
length
Number of bytes, from the binary value, to retrieve.
Gets the binary value of the specified data element.

Syntax

Visual Basic (Declaration) 
Overloads Public Function GetBinaryValue( _
   ByVal element As DicomElement, _
   ByVal length As Integer _
) As Byte()
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim element As DicomElement
Dim length As Integer
Dim value() As Byte
 
value = instance.GetBinaryValue(element, length)
C# 
public byte[] GetBinaryValue( 
   DicomElement element,
   int length
)
C++/CLI 
public:
array<byte>^ GetBinaryValue( 
   DicomElement^ element,
   int length
) 

Parameters

element
An item in the Data Set.
length
Number of bytes, from the binary value, to retrieve.

Return Value

Buffer that contains the binary value associated with the specified item in the Data Set, or null if the method couldn't get the binary value.

Example

Remarks

If the length specified by the DicomElement.Length property is greater than length, then the binary value returned will be truncated to the smaller length. If the the length specified by DicomElement.Length is less than length, then the entire binary value of element will be returned.

This method can be called for every Value Representation, and it will return the exact value in the Value Field (unconverted).

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features