←Select platform

SetBinaryValue(DicomElement,String) Method

Summary

Sets the binary value of an element.

Syntax

C#
VB
WinRT C#
C++
public bool SetBinaryValue(  
   Leadtools.Dicom.DicomElement element, 
   string fileName 
) 
Public Overloads Function SetBinaryValue( _ 
   ByVal element As Leadtools.Dicom.DicomElement, _ 
   ByVal fileName As String _ 
) As Boolean 
public bool SetBinaryValue(  
   Leadtools.Dicom.DicomElement element, 
   string fileName 
) 
 function Leadtools.Dicom.DicomDataSet.SetBinaryValue(DicomElement,String)(  
   element , 
   fileName  
) 
public: 
bool SetBinaryValue(  
   Leadtools.Dicom.DicomElement^ element, 
   String^ fileName 
)  

Parameters

element
An item in the Data Set.

fileName
Path name of the file that contains the binary value to set.

Return Value

True if the binary value of the Data Element was set successfully. false, if it could not set the binary value of the Data Element.

Remarks

This method overwrites the value of the Data Element. The Value Length of the Data Element is then equal to the file length.

Example

This example will replace the video stored in an existing DICOM Dataset with another one. The replacement video should have the same format, frame rate and compression as the originally stored one.

Note: This example assumes the replacement video has all the correct characteristics of a Dicom video and assumes that the tags found in the original dataset matches the video specs as well, if you need higher level video processing you need to use the medical SDK, which is supported only via the LEADTOOLS Medical Multimedia Module.

 

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Dicom Assembly
Click or drag to resize