VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Wpf.Codecs.Decoders Namespace / XpsDecoder Class / GetImage Methods / GetImage(Int32,RectangleF,Single,DecodingSettings,RenderingSettings,EventHandler<ProgressEventArgs>,EventHandler<IntermediateImageRequestEventArgs>) Method
Syntax Requirements SeeAlso
In This Topic
    GetImage(Int32,RectangleF,Single,DecodingSettings,RenderingSettings,EventHandler<ProgressEventArgs>,EventHandler<IntermediateImageRequestEventArgs>) Method (XpsDecoder)
    In This Topic
    Returns a scaled rectangle of XPS page.
    Syntax
    'Declaration
    
    Public Overloads Function GetImage( _
    ByVal pageIndex
    The zero based page index.
    As System.Int32, _
    ByVal rect
    Rectangle on source image.
    As System.Drawing.RectangleF, _
    ByVal scale
    Scale factor.
    As Single, _
    ByVal decodingSettings
    Decoding settings.
    As Vintasoft.Imaging.Codecs.Decoders.DecodingSettings, _
    ByVal renderingSettings
    Rendering settings.
    As Vintasoft.Imaging.Codecs.Decoders.RenderingSettings, _
    ByVal imageRenderingProgress
    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.
    rect
    Rectangle on source image.
    scale
    Scale factor.
    decodingSettings
    Decoding settings.
    renderingSettings
    Rendering settings.
    imageRenderingProgress
    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 rectangle of XPS page.
    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