DicomObjects Reference
DicomObjects Reference / DicomImages Collection / ReadMemory Method
This must be the handle to a global block of memory
The length of the DICOM data within the memory block
In This Topic
    ReadMemory Method
    In This Topic
    Description
    Reads a DICOM image from a global memory handle
    Syntax
    Visual Basic
    Public Function ReadMemory( _
       ByVal Handle As Integer, _
       ByVal Length As Long _
    ) As DicomImage
    Parameters
    Handle
    This must be the handle to a global block of memory
    Length
    The length of the DICOM data within the memory block
    Remarks
    This method can read data from either official “Part10” format files with the 128 byte header, or unofficial “Part3” format data without a header, and detection of the type is automatic.
    The data may have been written by the WriteMemory method or by other DICOM software.
    The memory block will be locked before use, then unlocked after.  It is the containing application’s responsibility to free the block when no longer needed.
    As DICOM has no mechanism to determine the length of the image/dataset from the data alone, the Length parameter must be accurate.
    See Also