VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Codecs.Decoders Namespace / JpegDecoder Class / GetImageRegion(Int32,Int32,Int32,Int32,DecodingSettings,EventHandler<ProgressEventArgs>,EventHandler<IntermediateImageRequestEventArgs>) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    GetImageRegion(Int32,Int32,Int32,Int32,DecodingSettings,EventHandler<ProgressEventArgs>,EventHandler<IntermediateImageRequestEventArgs>) Method (JpegDecoder)
    In This Topic
    Returns a scaled region of image.
    Syntax
    'Declaration
    
    Public Function GetImageRegion( _
    ByVal pageIndex
    The zero based page index. This parameter is not used and can be set to 0.
    As System.Int32, _
    ByVal leftTopRectIndex
    The zero based index of left-top rectangle.
    As System.Int32, _
    ByVal rightBottomRectIndex
    The zero based index of right-bottom rectangle.
    As System.Int32, _
    ByVal decodingSettings
    Decoding settings used for decode the image region of page.
    As System.Int32, _
    ByVal scale
    Scale factor. Possible values: 1 - original image rect should be get; N - reduced image rect should be get.
    As DecodingSettings, _
    ByVal imageLoadingProgress
    Delegate of the image loading progress. Can be set to null (Nothing in Visual Basic).
    As System.EventHandler(Of ProgressEventArgs), _
    ByVal intermediateImageRequest
    Delegate for requesting intermediate image. Can be set to null (Nothing in Visual Basic)
    As System.EventHandler(Of IntermediateImageRequestEventArgs) _
    ) As Vintasoft.Imaging.VintasoftImage

    Parameters

    pageIndex
    The zero based page index. This parameter is not used and can be set to 0.
    leftTopRectIndex
    The zero based index of left-top rectangle.
    rightBottomRectIndex
    The zero based index of right-bottom rectangle.
    decodingSettings
    Decoding settings used for decode the image region of page.
    scale
    Scale factor. Possible values: 1 - original image rect should be get; N - reduced image rect should be get.
    imageLoadingProgress
    Delegate of the image loading progress. Can be set to null (Nothing in Visual Basic).
    intermediateImageRequest
    Delegate for requesting intermediate image. Can be set to null (Nothing in Visual Basic)

    Return Value

    Scaled region of image.
    Exceptions
    ExceptionDescription
    Thrown if reading of image regions is not supported for specified page.
    Thrown if leftTopRectIndex or rightBottomRectIndex parameter has not correct value of index in a grid of image rectangles.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also