VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Wpf Namespace / VintasoftImageRenderer Class / DrawWithRenderer Methods / DrawWithRenderer(VintasoftImage,DrawingContext,Rect,Rect,Double,Double,ProcessingCommandBase,EventHandler<ProgressEventArgs>) Method
Syntax Requirements SeeAlso
In This Topic
    DrawWithRenderer(VintasoftImage,DrawingContext,Rect,Rect,Double,Double,ProcessingCommandBase,EventHandler<ProgressEventArgs>) Method (VintasoftImageRenderer)
    In This Topic
    Draws the specified rectangular area of VintasoftImage on the specified rectangular area of System.Windows.Media.DrawingContext. ImageRenderer is used for rendering of the rectangular area of source image.
    Syntax
    'Declaration
    
    Public Overloads Shared Sub DrawWithRenderer( _
    ByVal image
    Image to draw.
    As Vintasoft.Imaging.VintasoftImage, _
    ByVal drawingContext
    Drawing context where image should be drawn.
    As System.Windows.Media.DrawingContext, _
    ByVal sourceRect
    The rectangular area, in pixels, of image to draw.
    As System.Windows.Rect, _
    ByVal destRect
    The rectangular area, in device-independent pixels (1/96th inch), of device context where image should be drawn.
    As System.Windows.Rect, _
    ByVal destDpiX
    Horizontal resolution, in dpi, of drawing context.
    As Double, _
    ByVal destDpiY
    Vertical resolution, in dpi, of drawing context.
    As Double, _
    ByVal preprocessing
    Processing command that should be applied to image before drawing of image on drawing context.
    As Vintasoft.Imaging.ImageProcessing.ProcessingCommandBase, _
    ByVal renderingProgress
    Progress delegate of the source image rendering progress.
    As System.EventHandler(Of ProgressEventArgs) _
    )

    Parameters

    image
    Image to draw.
    drawingContext
    Drawing context where image should be drawn.
    sourceRect
    The rectangular area, in pixels, of image to draw.
    destRect
    The rectangular area, in device-independent pixels (1/96th inch), of device context where image should be drawn.
    destDpiX
    Horizontal resolution, in dpi, of drawing context.
    destDpiY
    Vertical resolution, in dpi, of drawing context.
    preprocessing
    Processing command that should be applied to image before drawing of image on drawing context.
    renderingProgress
    Progress delegate of the source image rendering progress.
    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