DicomObjects.NET10 Documentation
DicomObjects Namespace / DicomImage Class / Bitmap Method / Bitmap(DecodeOptions,Int32,CancellationToken) Method
Resolution levels and or target size for the result Bitmap

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(DecodeOptions,Int32,CancellationToken) Method
    In This Topic
    Creates a SKBitmap Image from DicomImage at a user specified resolution level
    Syntax
    'Declaration
     
    
    Public Overloads Function Bitmap( _
       ByVal decodeOptions As DecodeOptions, _
       Optional ByVal frame As Integer, _
       Optional ByVal cancellationToken As CancellationToken _
    ) As SkiaSharp.SKBitmap
    'Usage
     
    
    Dim instance As DicomImage
    Dim decodeOptions As DecodeOptions
    Dim frame As Integer
    Dim cancellationToken As CancellationToken
    Dim value As SkiaSharp.SKBitmap
     
    value = instance.Bitmap(decodeOptions, frame, cancellationToken)
    public:
    SkiaSharp.SKBitmap^ Bitmap( 
       DecodeOptions^ decodeOptions,
       int frame,
       CancellationToken cancellationToken
    ) 

    Parameters

    decodeOptions
    Resolution levels and or target size for the result Bitmap
    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 users specified Size or the desired resolution 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