DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Import Method / Import(Image) Method
The image to import
Example

In This Topic
    Import(Image) Method
    In This Topic
    Copies the image data from an external generic image object
    Syntax
    'Declaration
     
    
    Public Overloads Sub Import( _
       ByVal Image As System.Drawing.Image _
    ) 
    public void Import( 
       System.Drawing.Image Image
    )

    Parameters

    Image
    The image to 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.

    A multiframe image is created if the input data is a multipage Image

    Example
    DicomImage image = new DicomImage();
    Image externalImage = Image.FromFile("your_external_image_format_image.bmp");
    image.Import(externalImage);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also