VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.UI Namespace / ImageViewer Class / DrawViewer Method / DrawViewer(Graphics,RectangleF,RectangleF,Boolean,Boolean) Method
The System.Drawing.Graphics, where viewer must be drawn.
A source rectangle on the viewer.
A rectangle on System.Drawing.Graphics, where viewer must be drawn.
Determines that the viewer background must be drawn on System.Drawing.Graphics.
Determines that the visual tools must be drawn on System.Drawing.Graphics.



In This Topic
    DrawViewer(Graphics,RectangleF,RectangleF,Boolean,Boolean) Method
    In This Topic
    Draws the viewer on the specified System.Drawing.Graphics.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawViewer( _
       ByVal g As Graphics, _
       ByVal sourceRect As RectangleF, _
       ByVal destRect As RectangleF, _
       ByVal drawBackground As Boolean, _
       ByVal drawVisualTools As Boolean _
    ) 
    public void DrawViewer( 
       Graphics g,
       RectangleF sourceRect,
       RectangleF destRect,
       bool drawBackground,
       bool drawVisualTools
    )
    public: void DrawViewer( 
       Graphics* g,
       RectangleF sourceRect,
       RectangleF destRect,
       bool drawBackground,
       bool drawVisualTools
    ) 
    public:
    void DrawViewer( 
       Graphics^ g,
       RectangleF sourceRect,
       RectangleF destRect,
       bool drawBackground,
       bool drawVisualTools
    ) 

    Parameters

    g
    The System.Drawing.Graphics, where viewer must be drawn.
    sourceRect
    A source rectangle on the viewer.
    destRect
    A rectangle on System.Drawing.Graphics, where viewer must be drawn.
    drawBackground
    Determines that the viewer background must be drawn on System.Drawing.Graphics.
    drawVisualTools
    Determines that the visual tools must be drawn on System.Drawing.Graphics.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also