LEADTOOLS Medical (Leadtools.Dicom assembly)
LEAD Technologies, Inc

Load(IntPtr,Int64,DicomDataSetFlags) Method








Pointer to a buffer that contains the Data Set to be loaded.
Size of the buffer, in bytes.
Meta-header flags and Transfer Syntax flags that indicate the Data Set characteristics to use when loading the Data Set.
Loads a Data Set. .NET support WinRT support
Syntax
public void Load( 
   IntPtr buffer,
   long bufferSize,
   DicomDataSetFlags flags
)
'Declaration
 
Public Overloads Sub Load( _
   ByVal buffer As IntPtr, _
   ByVal bufferSize As Long, _
   ByVal flags As DicomDataSetFlags _
) 
'Usage
 
Dim instance As DicomDataSet
Dim buffer As IntPtr
Dim bufferSize As Long
Dim flags As DicomDataSetFlags
 
instance.Load(buffer, bufferSize, flags)
public void Load( 
   IntPtr buffer,
   long bufferSize,
   DicomDataSetFlags flags
)
ObjectiveC Syntax
 function Leadtools.Dicom.DicomDataSet.Load(IntPtr,Int64,DicomDataSetFlags)( 
   buffer ,
   bufferSize ,
   flags 
)
public:
void Load( 
   IntPtr buffer,
   int64 bufferSize,
   DicomDataSetFlags flags
) 

Parameters

buffer
Pointer to a buffer that contains the Data Set to be loaded.
bufferSize
Size of the buffer, in bytes.
flags
Meta-header flags and Transfer Syntax flags that indicate the Data Set characteristics to use when loading the Data Set.
Remarks
Unless you pass the DicomDataSetLoadFlags.LoadAndClose flag, This method DOES NOT make a copy of the memory pointed to by buffer. Therefore, DO NOT free this memory as long as you are using the Data Set referenced by this instance of the class, or until you have reset the Data Set by calling Reset.

Once you have called Reset, you can repopulate the Data Set by calling Initialize(DicomClassType,DicomDataSetInitializeType), Load(String,DicomDataSetLoadFlags), or Load(IntPtr,Int64,DicomDataSetFlags).

If you know certain characteristics of the Data Set in memory, 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 DicomDataSetFlags.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 of the characteristics of the Data Set in memory, set flags to DicomDataSetFlags.None and LEADTOOLS will automatically determine all the Data Set characteristics and load the Data Set accordingly.

Example
For an example, refer to Load(String,DicomDataSetLoadFlags).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
Load(String,DicomDataSetLoadFlags) Method
Save(String,DicomDataSetSaveFlags) Method
Reset Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 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