DicomObjects.NET10 Documentation
DicomObjects Namespace / DicomImage Class / Bitmap Method / Bitmap(Int32,CancellationToken) Method

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

Cancellation token to terminate the call



In This Topic
    Bitmap(Int32,CancellationToken) Method
    In This Topic
    Creates a SKBitmap Image from DicomImage
    Syntax
    'Declaration
     
    
    Public Overloads Function Bitmap( _
       Optional ByVal frame As Integer, _
       Optional ByVal cancellationToken As CancellationToken _
    ) As SkiaSharp.SKBitmap
    'Usage
     
    
    Dim instance As DicomImage
    Dim frame As Integer
    Dim cancellationToken As CancellationToken
    Dim value As SkiaSharp.SKBitmap
     
    value = instance.Bitmap(frame, cancellationToken)
    public SkiaSharp.SKBitmap Bitmap( 
       int frame,
       CancellationToken cancellationToken
    )
    public:
    SkiaSharp.SKBitmap^ Bitmap( 
       int frame,
       CancellationToken cancellationToken
    ) 

    Parameters

    frame

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

    cancellationToken
    Cancellation token to terminate the call

    Return Value

    Bitmap
    Remarks
    Returns a SKBitmap image of the RenderedSize of the first Frame by default of the DicomImage
    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