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

The frame number to use. This is 1-index, i.e. first frame is 1 not 0

Example

In This Topic
    Bitmap(Int32) Method
    In This Topic
    Creates a Bitmap Image from DicomImage
    Syntax
    'Declaration
     
    
    Public Overloads Function Bitmap( _
       ByVal frame As System.Integer _
    ) As System.Drawing.Bitmap
    public System.Drawing.Bitmap Bitmap( 
       System.int frame
    )

    Parameters

    frame

    The frame number to use. This is 1-index, i.e. first frame is 1 not 0

    Return Value

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

    Target Platforms: .NET CLR 4.8 or higher

    See Also