Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.v3.6 Assembly / Xceed.SmartUI Namespace / SmartPaint Class / DrawImage Method / DrawImage(Rectangle,ContentAlignment) Method
A System.Drawing.Rectangle structure representing the rectangle in which to draw the image.
A System.Drawing.ContentAlignment value representing the alignment of the image.


In This Topic
    DrawImage(Rectangle,ContentAlignment) Method
    In This Topic
    Draws the image that corresponds to ImageIndex in the specified rectangle with the specified alignment.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawImage( _
       ByVal rectangle As Rectangle, _
       ByVal alignment As ContentAlignment _
    ) 
    'Usage
     
    Dim instance As SmartPaint
    Dim rectangle As Rectangle
    Dim alignment As ContentAlignment
     
    instance.DrawImage(rectangle, alignment)
    public void DrawImage( 
       Rectangle rectangle,
       ContentAlignment alignment
    )

    Parameters

    rectangle
    A System.Drawing.Rectangle structure representing the rectangle in which to draw the image.
    alignment
    A System.Drawing.ContentAlignment value representing the alignment of the image.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also