DicomObjects Reference
DicomObjects Reference / DicomImage Object / MemoryImport Method
Handle of a global memory block containing the image data
The type of import operation to perform
Further information necessary for the import
In This Topic
    MemoryImport Method
    In This Topic
    Description
    Due to the lack of 64 bit OLE Handle in COM interface, this function is not supported in 64 bit mode
    Syntax
    Visual Basic
    Public Sub MemoryImport( _
       ByVal Handle As Integer, _
       ByVal Type As String, _
       Optional ByVal Information As Variant _
    ) 
    Parameters
    Handle
    Handle of a global memory block containing the image data
    Type
    The type of import operation to perform
    Information
    Further information necessary for the import
    Remarks

    Like the Paste method, this method modifies only the minimum number of attributes necessary to ensure consistency of the image.  In order to produce a valid DICOM SOP instance, many other attributes (depending on the SOP class) must be added.
    If Type is omitted or zero length, it is assumed to equal the extension of the filename for “FileImport”, but must be specified for the other forms.
    Only JPEG, BMP/DIB, AVI and (experimentally) MPEG formats are supported directly, but other formats may be supported via extension DLLs.

    The following applies to JPEG file import:

    The JPEG data is imported directly, and may either be stored or transmitted unchanged as a JPEG encapsulated SOP instance (1.2.840.10008.1.2.4.50), or automatically decompressed if necessary.
    The Type parameter must be JPEG or JPG
    The Information parameter is not used.

    The following applies to DIB/BMP file import:

    Data must be uncompressed.
    If a BMP file header is present, this is detected automatically.
    The Type parameter must be DIB or BMP
    The Information parameter is not used.

    The following applies to AVI file import:

    The Type parameter must be AVI
    The Information parameter is not used.
    A multi-frame DICOM image is generated.

    The following applies to MPEG file import:

    The Type parameter must be MPG
    The Information parameter is not used.
    An MPEG-2 encoded DICOM image is generated.
    FFMpeg implementation supports other popular video formats as well.

    See Import/Export DLLs for details of how to write and configure your own extension DLLs

    See Also