VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Codecs.Decoders Namespace / PngDecoder Class / GetImage Methods / GetImage(Int32,Int32,DecodingSettings,EventHandler<ProgressEventArgs>,EventHandler<IntermediateImageRequestEventArgs>) Method
Syntax Remarks Requirements SeeAlso
In This Topic
    GetImage(Int32,Int32,DecodingSettings,EventHandler<ProgressEventArgs>,EventHandler<IntermediateImageRequestEventArgs>) Method (PngDecoder)
    In This Topic
    Returns an interlaced image.
    Syntax
    'Declaration
    
    Public Overloads Function GetImage( _
    ByVal pageIndex
    The zero based page index. This parameter is not used and can be set to 0.
    As System.Int32, _
    ByVal decodingSettings
    The decoding settings that should be used for decoding of page image.
    As System.Int32, _
    ByVal lineStep
    Interlace step. Possible values: 1 - each line of image will be decoded; 2 - each second line of image will be decoded; etc.
    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.
    decodingSettings
    The decoding settings that should be used for decoding of page image.
    lineStep
    Interlace step. Possible values: 1 - each line of image will be decoded; 2 - each second line of image will be decoded; etc.
    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

    Interlaced image.
    Remarks

    Height of returned image can be calculated by formula: Heigh_Of_Returned_Image = Height_Of_Real_Image / lineStep.

    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