'DeclarationPublic Overloads Overridable Function SubImage( _ ByVal offset As SkiaSharp.SKPointI, _ ByVal size As SkiaSharp.SKSizeI, _ ByVal magnification As Single, _ ByVal frame As Integer, _ ByVal scaleMode As ScaleMode, _ Optional ByVal cancellationToken As CancellationToken _ ) As DicomImage
'UsageDim instance As DicomImage Dim offset As SkiaSharp.SKPointI Dim size As SkiaSharp.SKSizeI Dim magnification As Single Dim frame As Integer Dim scaleMode As ScaleMode Dim cancellationToken As CancellationToken Dim value As DicomImage value = instance.SubImage(offset, size, magnification, frame, scaleMode, cancellationToken)
public virtual DicomImage SubImage( SkiaSharp.SKPointI offset, SkiaSharp.SKSizeI size, float magnification, int frame, ScaleMode scaleMode, CancellationToken cancellationToken )
public: virtual DicomImage^ SubImage( SkiaSharp.SKPointI offset, SkiaSharp.SKSizeI size, float magnification, int frame, ScaleMode scaleMode, CancellationToken cancellationToken )
Parameters
- offset
The left top corner point of the sub Image
- size
The total size of the original image to capture
- magnification
The zooming factor which determines the output size
- frame
The frame number to use. This is 1-index, i.e. first frame is 1 not 0
- scaleMode
The scaling mode to use
- cancellationToken
- Cancellation token to terminate the call