Charting for WinForms Programmer's Guide
IGraphics.DrawImage Method (Image, Rectangle, Single, Single, Single, Single, GraphicsUnit)
See Also
 






Draws the specified portion of the specified .NET Image object at the specified location and with the specified size.

Namespace: MindFusion.Drawing
Assembly: MindFusion.Common

 Syntax

C#  Copy Code

void DrawImage (
    Image image,
    Rectangle destRect,
    float srcX,
    float srcY,
    float srcWidth,
    float srcHeight,
    GraphicsUnit srcUnit
)

Visual Basic  Copy Code

Sub DrawImage( _
    image As Image, _
    destRect As Rectangle, _
    srcX As Single, _
    srcY As Single, _
    srcWidth As Single, _
    srcHeight As Single, _
    srcUnit As GraphicsUnit _
)

 Parameters

image
A .NET Image object to draw.
destRect
A .NET Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcX
The x-coordinate of the upper-left corner of the portion of the source image to draw.
srcY
The y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidth
The width of the portion of the source image to draw.
srcHeight
The height of the portion of the source image to draw.
srcUnit
Member of the .NET GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.

 See Also

DrawImage Method Overload List
IGraphics Members
IGraphics Interface
MindFusion.Drawing Namespace