DicomObjects.NET8 Documentation
DicomObjects Namespace / DicomImage Class / Bitmap Method / Bitmap(Int32,SKSizeI,SKColorType,SKMatrix,Single,Single,Boolean) Method
The frame number to use. This is 1-index, i.e. first frame is 1 not 0
The size of the image to generate
The requested format
The Matrix to apply to convert from DICOM coordinates to SKBitmap coordinates. Empty matrix will be set to Identity internally to avoid errors during calculation
Custom Window Width value to apply if VOILUT is not present or useVOIIfPresent is set to false
Custom Window Centre value to apply if VOILUT is not present or useVOIIfPresent is set to false
Apply VOI LUT is present in base Image object



In This Topic
    Bitmap(Int32,SKSizeI,SKColorType,SKMatrix,Single,Single,Boolean) 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 frame As Integer, _
       ByVal size As SkiaSharp.SKSizeI, _
       Optional ByVal format As SkiaSharp.SKColorType, _
       Optional ByVal matrix As SkiaSharp.SKMatrix, _
       Optional ByVal windowWidth As Single, _
       Optional ByVal windowCenter As Single, _
       Optional ByVal useVoiIfPresent As Boolean _
    ) As SkiaSharp.SKBitmap
    'Usage
     
    
    Dim instance As DicomImage
    Dim frame As Integer
    Dim size As SkiaSharp.SKSizeI
    Dim format As SkiaSharp.SKColorType
    Dim matrix As SkiaSharp.SKMatrix
    Dim windowWidth As Single
    Dim windowCenter As Single
    Dim useVoiIfPresent As Boolean
    Dim value As SkiaSharp.SKBitmap
     
    value = instance.Bitmap(frame, size, format, matrix, windowWidth, windowCenter, useVoiIfPresent)
    public SkiaSharp.SKBitmap Bitmap( 
       int frame,
       SkiaSharp.SKSizeI size,
       SkiaSharp.SKColorType format,
       SkiaSharp.SKMatrix matrix,
       float windowWidth,
       float windowCenter,
       bool useVoiIfPresent
    )
    public:
    SkiaSharp.SKBitmap^ Bitmap( 
       int frame,
       SkiaSharp.SKSizeI size,
       SkiaSharp.SKColorType format,
       SkiaSharp.SKMatrix matrix,
       float windowWidth,
       float windowCenter,
       bool useVoiIfPresent
    ) 

    Parameters

    frame
    The frame number to use. This is 1-index, i.e. first frame is 1 not 0
    size
    The size of the image to generate
    format
    The requested format
    matrix
    The Matrix to apply to convert from DICOM coordinates to SKBitmap coordinates. Empty matrix will be set to Identity internally to avoid errors during calculation
    windowWidth
    Custom Window Width value to apply if VOILUT is not present or useVOIIfPresent is set to false
    windowCenter
    Custom Window Centre value to apply if VOILUT is not present or useVOIIfPresent is set to false
    useVoiIfPresent
    Apply VOI LUT is present in base Image object

    Return Value

    A SKBitmap object
    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