DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Bitmap Method / Bitmap() Method
Example

In This Topic
    Bitmap() Method
    In This Topic
    Creates a Bitmap Image from DicomImage
    Syntax
    'Declaration
     
    
    Public Overloads Function Bitmap() As System.Drawing.Bitmap
    public System.Drawing.Bitmap Bitmap()

    Return Value

    Bitmap
    Remarks
    Returns a Bitmap image of the full size of the DicomImage
    Example
    // The DICOM image must have pixel data
    DicomImage image = new DicomImage("path_to_dicom_image");
    var bitmap = image.Bitmap();
    bitmap.Save("path_to_save_location_image.bmp");
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also