LEADTOOLS Medical (Leadtools.Dicom assembly)

loadAsync Method

Show in webframe







stream that contains the data to be loaded
Meta-header flags and Transfer Syntax flags that indicate the file characteristics to use when loading the file.
Loads a file from an ILeadStream asynchronously.
Syntax
public void loadAsync( 
   ILeadStream stream,
   int flags
)
'Declaration
 
Public Sub loadAsync( _
   ByVal stream As ILeadStream, _
   ByVal flags As Integer _
) 
'Usage
 
Dim instance As DicomDataSet
Dim stream As ILeadStream
Dim flags As Integer
 
instance.loadAsync(stream, flags)
public void loadAsync( 
   ILeadStream stream,
   int flags
)

            
public void loadAsync(ILeadStream stream, int flags)
 function Leadtools.Dicom.DicomDataSet.loadAsync( 
   stream ,
   flags 
)
public:
void loadAsync( 
   ILeadStream^ stream,
   int flags
) 

Parameters

stream
stream that contains the data to be loaded
flags
Meta-header flags and Transfer Syntax flags that indicate the file characteristics to use when loading the file.
Remarks
If you know certain characteristics of the file, you can set those in flags. Any characteristic that you do not set will be automatically determined. For example, if you know that the Meta-header is present, but you do not know the byte order, or whether the Value Representation is Implicit or Explicit, you can set only DicomDataSetLoadFlags.MetaHeaderPresent in flags. During loading, LEADTOOLS will determine the byte order and whether the byte order is Implicit or Explicit.

If you do not know any characteristics of the file, set flags to DicomDataSetLoadFlags.None and LEADTOOLS will automatically determine all the file characteristics and load the file accordingly.

If DicomDataSetLoadFlags.LoadAndClose is not included in flags, the file will remain open until the object is destructed, or one of the following methods is called: Reset, Initialize(DicomClassType,DicomDataSetInitializeType), or Load(String,DicomDataSetLoadFlags) (again). If LoadAndClose is used for large images it might slow performance; however, the file handle will be released. If set to None, large images will load quickly, and image traversal can begin immediately. Until the file handle is released, nothing can be done to the image.

Requirements

Target Platforms

See Also

Reference

DicomDataSet Class
DicomDataSet Members

 

 


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