XdsObjects Help file
XdsObjects Namespace / XdsDocumentViewer Class / AddImage Method
The image to add
Example



In This Topic
    AddImage Method
    In This Topic
    Adds a DICOM dataset (representing an image) to the viewer.
    Syntax
    Public Sub AddImage( _
       ByVal DataSet As DicomObjects.DicomDataSet _
    ) 
    Dim instance As XdsDocumentViewer
    Dim DataSet As DicomObjects.DicomDataSet
     
    instance.AddImage(DataSet)
    public void AddImage( 
       DicomObjects.DicomDataSet DataSet
    )
    public:
    void AddImage( 
       DicomObjects.DicomDataSet^ DataSet
    ) 

    Parameters

    DataSet
    The image to add
    Remarks
    This method is used by client applications which are retrieving images using the DICOM C-MOVE protocl rather than WADO or Rad-69. If an image source referenced within a KOS object has been identified as using C-MOVE then the viewer will issue a C-MOVE request, but the application must then be prepared to receive the C-STORE repsonses and add them to the viewer using this method.
    Example
    server.Listen(LocalPortNumber);
                server.InstanceReceived += new DicomServer.InstanceReceivedHandler(server_InstanceReceived);
                Viewer.Display(KosObject);        
                void server_InstanceReceived(object sender, DicomServer.InstanceReceivedArgs e)
                {
                    MessageBox.Show(e.Instance.Name);
                    Viewer.AddImage(e.Instance);
                    e.Status = 0;
                }
    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