LEADTOOLS Medical (Leadtools.Dicom assembly)

GetBinaryValue(DicomElement,Int32) Method

Show in webframe







An item in the Data Set.
Number of bytes, from the binary value, to retrieve.
Gets the binary value of the specified data element.
Syntax
public byte[] GetBinaryValue( 
   DicomElement element,
   int length
)
'Declaration
 
Public Overloads Function GetBinaryValue( _
   ByVal element As DicomElement, _
   ByVal length As Integer _
) As Byte()
'Usage
 
Dim instance As DicomDataSet
Dim element As DicomElement
Dim length As Integer
Dim value() As Byte
 
value = instance.GetBinaryValue(element, length)
public byte[] GetBinaryValue( 
   DicomElement element,
   int length
)

            
public byte[] getBinaryValue(DicomElement element, int length)
 function Leadtools.Dicom.DicomDataSet.GetBinaryValue(DicomElement,Int32)( 
   element ,
   length 
)
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.
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).

Example
For an example, refer to SetIntValue(DicomElement,IntPtr,Int32).
Requirements

Target Platforms

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
GetValue
GetBinaryValue(DicomElement,IntPtr,Int32) Method
GetBinaryValue(DicomElement,Byte[],Int32,Int32) Method
GetByteValue(DicomElement,Int32,Int32) Method
GetShortValue(DicomElement,Int32,Int32) Method
GetLongValue(DicomElement,Int32,Int32) Method
GetIntValue(DicomElement,Int32,Int32) Method
GetFloatValue(DicomElement,Int32,Int32) Method
GetDoubleValue(DicomElement,Int32,Int32) Method
GetStringValue Method
GetAgeValue(DicomElement,Int32,Int32) Method
GetDateValue(DicomElement,Int32,Int32) Method
GetTimeValue(DicomElement,Int32,Int32) Method
GetDateTimeValue(DicomElement,Int32,Int32) Method
GetConvertValue Method

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

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