VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Print Namespace / ImagePrintDocument Class / DrawImage(VintasoftImage,Graphics,RectangleF,RectangleF,Single,Single,Boolean) Method
Syntax Requirements SeeAlso
In This Topic
    DrawImage(VintasoftImage,Graphics,RectangleF,RectangleF,Single,Single,Boolean) Method (ImagePrintDocument)
    In This Topic
    Draws the specified rectangular area of VintasoftImage on the specified rectangular area of page's System.Drawing.Graphics.
    Syntax
    'Declaration
    
    Protected Overridable Sub DrawImage( _
    ByVal image
    An image to draw.
    As Vintasoft.Imaging.VintasoftImage, _
    ByVal graphics
    Page's graphics, where image should be drawn.
    As System.Drawing.Graphics, _
    ByVal sourceRect
    The rectangular area, in device-independent pixels (1/96th inch), of image to draw.
    As System.Drawing.RectangleF, _
    ByVal destRect
    The rectangular area, in pixels, of page's graphics, where image should be drawn.
    As System.Drawing.RectangleF, _
    ByVal printerResolutionX
    The resolution of printer along X-axis.
    As Single, _
    ByVal printerResolutionY
    The resolution of printer along Y-axis.
    As Single, _
    ByVal landscape
    A value indicating whether print document must draw image in landscape mode.
    As Boolean _
    )

    Parameters

    image
    An image to draw.
    graphics
    Page's graphics, where image should be drawn.
    sourceRect
    The rectangular area, in device-independent pixels (1/96th inch), of image to draw.
    destRect
    The rectangular area, in pixels, of page's graphics, where image should be drawn.
    printerResolutionX
    The resolution of printer along X-axis.
    printerResolutionY
    The resolution of printer along Y-axis.
    landscape
    A value indicating whether print document must draw image in landscape mode.
    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