ASP.NET Pack Programmer's Guide
IGraphics.DrawImage Method (Image, Rectangle, Rectangle, 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
Package: MindFusion.Common

 Syntax

C#  Copy Code

void DrawImage (
    Image image,
    Rectangle destRect,
    Rectangle srcRect,
    GraphicsUnit srcUnit
)

Visual Basic  Copy Code

Sub DrawImage( _
    image As Image, _
    destRect As Rectangle, _
    srcRect As Rectangle, _
    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.
srcRect
A .NET Rectangle structure that specifies the portion of the image object to draw.
srcUnit
Member of the .NET GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.

 See Also

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