DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Bitmap Method / Bitmap(Size,PixelFormat,Matrix,Int32) Method
The size of the image to generate
The requested format
The Matrix to apply to convert from DICOM coordinates to Bitmap coordinates

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







In This Topic
    Bitmap(Size,PixelFormat,Matrix,Int32) Method
    In This Topic
    Creates a new Bitmap object, in the chosen format representing the appearance of a DicomImage
    Syntax
    'Declaration
     
    
    Public Overloads Function Bitmap( _
       ByVal Size As System.Drawing.Size, _
       ByVal Format As System.Drawing.Imaging.PixelFormat, _
       ByVal Matrix As System.Drawing.Drawing2D.Matrix, _
       ByVal frame As System.Integer _
    ) As System.Drawing.Bitmap
    'Usage
     
    
    Dim instance As DicomImage
    Dim Size As System.Drawing.Size
    Dim Format As System.Drawing.Imaging.PixelFormat
    Dim Matrix As System.Drawing.Drawing2D.Matrix
    Dim frame As System.Integer
    Dim value As System.Drawing.Bitmap
     
    value = instance.Bitmap(Size, Format, Matrix, frame)
    public System.Drawing.Bitmap Bitmap( 
       System.Drawing.Size Size,
       System.Drawing.Imaging.PixelFormat Format,
       System.Drawing.Drawing2D.Matrix Matrix,
       System.int frame
    )
    public function Bitmap( 
        Size: System.Drawing.Size;
        Format: System.Drawing.Imaging.PixelFormat;
        Matrix: System.Drawing.Drawing2D.Matrix;
        frame: System.Integer
    ): System.Drawing.Bitmap; 
    public function Bitmap( 
       Size : System.Drawing.Size,
       Format : System.Drawing.Imaging.PixelFormat,
       Matrix : System.Drawing.Drawing2D.Matrix,
       frame : System.int
    ) : System.Drawing.Bitmap;
    public: System.Drawing.Bitmap* Bitmap( 
       System.Drawing.Size Size,
       System.Drawing.Imaging.PixelFormat Format,
       System.Drawing.Drawing2D.Matrix* Matrix,
       System.int frame
    ) 
    public:
    System.Drawing.Bitmap^ Bitmap( 
       System.Drawing.Size Size,
       System.Drawing.Imaging.PixelFormat Format,
       System.Drawing.Drawing2D.Matrix^ Matrix,
       System.int frame
    ) 

    Parameters

    Size
    The size of the image to generate
    Format
    The requested format
    Matrix
    The Matrix to apply to convert from DICOM coordinates to Bitmap coordinates
    frame

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

    Return Value

    A Bitmap object
    Remarks
    Only some formats are allowed by Windows - only those supported by System.Drawing.Graphics.FromImage(System.Drawing.Image)
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also