VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging Namespace / ImageCollection Class / GetImageIndex(DecoderBase,Int32) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    GetImageIndex(DecoderBase,Int32) Method (ImageCollection)
    In This Topic
    Returns the image page index in image collection that corresponds the image page index in decoder.
    Syntax
    'Declaration
    
    Public Function GetImageIndex( _
    ByVal decoder
    The decoder.
    As Vintasoft.Imaging.Codecs.Decoders.DecoderBase, _
    ByVal decoderPageIndex
    Page index in decoder.
    As System.Int32 _
    ) As System.Int32
    public System.Int32 GetImageIndex(
    Vintasoft.Imaging.Codecs.Decoders.DecoderBase decoder,
    System.Int32 decoderPageIndex
    )
    public: System.Int32 GetImageIndex(
    Vintasoft.Imaging.Codecs.Decoders.DecoderBase* decoder,
    System.Int32 decoderPageIndex
    )
    public:
    System.Int32 GetImageIndex(
    Vintasoft.Imaging.Codecs.Decoders.DecoderBase^ decoder,
    System.Int32 decoderPageIndex
    )

    Parameters

    decoder
    The decoder.
    decoderPageIndex
    Page index in decoder.

    Return Value

    The page index in image collection if image is found; otherwise, -1.
    Exceptions
    ExceptionDescription
    Thrown if pageIndex is less than 0.
    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