VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Codecs.ImageFiles.Tiff Namespace / TiffPage Class / GetImageRect(Int32,Int32,Int32,DecodingSettings,EventHandler<ProgressEventArgs>) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    GetImageRect(Int32,Int32,Int32,DecodingSettings,EventHandler<ProgressEventArgs>) Method (TiffPage)
    In This Topic
    Returns the rectangle image of this TIFF page if image data are non compressed (Compression == TiffCompression.None).
    Syntax

    Parameters

    leftTopRectangleIndex
    The zero based index of left-top rectangle.
    rightBottomRectangleIndex
    The zero based index of right-bottom rectangle.
    scale
    Scale factor.
    progressDelegate
    Progress delegate.
    decodingSettings
    The decoding settings that should be used for decoding of page image.

    Return Value

    Image of rectangle of this TiffPage object if image was loaded successfully; otherwise, null.
    Exceptions
    ExceptionDescription
    Thrown if if SourceBitsPerPixel is not equal to BitsPerPixel.
    Thrown if leftTopRectangleIndex is less than zero or greater than number of rectangles in image grid OR rightBottomRectangleIndex is less than zero or greater than number of rectangles in image grid.
    Thrown if error occurred while loading of image.
    Remarks

    This method is optimized for reading uncompressed data and can be used only when the GetStripGrid method returned not null value.

    This method is working in current thread.

    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