VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Codecs.ImageFiles.Jpeg Namespace / JpegPage Class / GetImageRect Methods / GetImageRect(Int32,Int32,Int32,EventHandler<ProgressEventArgs>) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    GetImageRect(Int32,Int32,Int32,EventHandler<ProgressEventArgs>) Method (JpegPage)
    In This Topic
    Returns an image of scaled rectangle of this page.
    Syntax
    'Declaration
    
    Public Overloads Function GetImageRect( _
    ByVal firstRowIndex
    The zero based index of first row to decode. Value of this parameter must be multiple McuHeight in sequential mode, and 0 in progressive mode.
    As System.Int32, _
    ByVal rowCount
    Count of rows to decode. Value of this parameter must be multiple McuHeight in sequential mode, and equal to Height in progressive mode.
    As System.Int32, _
    ByVal scale
    Scale factor. Value of this parameter must be either 1 or multiple 8 in sequential mode, and either 1 or 8 in progressive mode.
    As System.Int32, _
    ByVal imageLoadingProgress
    Delegate of the image loading progress. Can be set to null (Nothing in Visual Basic).
    As System.EventHandler(Of ProgressEventArgs) _
    ) As Vintasoft.Imaging.VintasoftImage

    Parameters

    firstRowIndex
    The zero based index of first row to decode. Value of this parameter must be multiple McuHeight in sequential mode, and 0 in progressive mode.
    rowCount
    Count of rows to decode. Value of this parameter must be multiple McuHeight in sequential mode, and equal to Height in progressive mode.
    scale
    Scale factor. Value of this parameter must be either 1 or multiple 8 in sequential mode, and either 1 or 8 in progressive mode.
    imageLoadingProgress
    Delegate of the image loading progress. Can be set to null (Nothing in Visual Basic).

    Return Value

    Image of scaled rectangle of this page.
    Exceptions
    ExceptionDescription
    Thrown if OperationMode == JpegOperationMode.SequentialBaseline and firstRowIndex is less than zero or greater than image height -or- firstRowIndex is not a multiple McuHeight -or- rowCount is less than zero or greater than available rows count -or- rowCount is not a multiple McuHeight -or- scale is less than zero or greater than rowCount -or- scale is neither 1 nor a multiple 8. Also thrown if OperationMode == JpegOperationMode.Progressive and firstRowIndex is not equal to 0 -or- rowCount is not equal to image height -or- scale is neither 1 nor 8.
    Requirements

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

    See Also