Leadtools.Dicom Namespace > DicomDataSet Class : loadAsync Method |
'Usage Dim instance As DicomDataSet Dim stream As ILeadStream Dim flags As Integer instance.loadAsync(stream, flags)
public void loadAsync(ILeadStream stream, int flags)
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.