DicomObjects.NetStandard Documentation
DicomObjects Namespace / DicomDataSet Class / SubImage Method

The left top corner point of the sub Image

The total size of the original image to capture

The zooming factor which determines the output size

The frame number

The scaling mode to use




In This Topic
    SubImage Method (DicomDataSet)
    In This Topic
    Creates a copy of part or all of the image with controlled size
    Syntax
    'Declaration
     
    
    Public Function SubImage( _
       ByVal Offset As SkiaSharp.SKPointI, _
       ByVal SKSizeI As SkiaSharp.SKSizeI, _
       ByVal Magnification As Single, _
       ByVal Frame As Integer, _
       Optional ByVal Scaling As ScaleMode _
    ) As DicomDataSet
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim Offset As SkiaSharp.SKPointI
    Dim SKSizeI As SkiaSharp.SKSizeI
    Dim Magnification As Single
    Dim Frame As Integer
    Dim Scaling As ScaleMode
    Dim value As DicomDataSet
     
    value = instance.SubImage(Offset, SKSizeI, Magnification, Frame, Scaling)
    public DicomDataSet SubImage( 
       SkiaSharp.SKPointI Offset,
       SkiaSharp.SKSizeI SKSizeI,
       float Magnification,
       int Frame,
       ScaleMode Scaling
    )
    public:
    DicomDataSet^ SubImage( 
       SkiaSharp.SKPointI Offset,
       SkiaSharp.SKSizeI SKSizeI,
       float Magnification,
       int Frame,
       ScaleMode Scaling
    ) 

    Parameters

    Offset

    The left top corner point of the sub Image

    SKSizeI

    The total size of the original image to capture

    Magnification

    The zooming factor which determines the output size

    Frame

    The frame number

    Scaling

    The scaling mode to use

    Return Value

    Remarks

    Makes a derived image (of same basic DICOM type as the original) scaled and cropped as required. SKSizeI refers to the final image size, whether or not it is transformed as below.

    The coordinate system used depends on the value of scaling. If ScaleMode.Image then the original image is used without rotation etc, but if ScaleMode.Output then the image is conceptually flipped, rotated etc. before applying the bounds.

    This overload is now recommended in place of the earlier version without the scaling mode which is retained for backwards compatibility only.

    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