Dundas Chart for Windows Forms
DrawImage(Image,Rectangle,Int32,Int32,Int32,Int32,GraphicsUnit,ImageAttributes) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl.Svg Namespace > SvgRendering Class > DrawImage Method : DrawImage(Image,Rectangle,Int32,Int32,Int32,Int32,GraphicsUnit,ImageAttributes) Method


image
Image object to draw.
destRect
Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcX
x-coordinate of the upper-left corner of the portion of the source image to draw.
srcY
y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidth
Width of the portion of the source image to draw.
srcHeight
Height of the portion of the source image to draw.
srcUnit
Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.
imageAttr
ImageAttributes object that specifies recoloring and gamma information for the image object.
Draws the specified portion of the specified Image object at the specified location and with the specified size.

Syntax

Visual Basic (Declaration)  
Public Overloads Sub DrawImage( _
   ByVal image As Image, _
   ByVal destRect As Rectangle, _
   ByVal srcX As Integer, _
   ByVal srcY As Integer, _
   ByVal srcWidth As Integer, _
   ByVal srcHeight As Integer, _
   ByVal srcUnit As GraphicsUnit, _
   ByVal imageAttr As ImageAttributes _
) 
Visual Basic (Usage) Copy Code
Dim instance As SvgRendering
Dim image As Image
Dim destRect As Rectangle
Dim srcX As Integer
Dim srcY As Integer
Dim srcWidth As Integer
Dim srcHeight As Integer
Dim srcUnit As GraphicsUnit
Dim imageAttr As ImageAttributes
 
instance.DrawImage(image, destRect, srcX, srcY, srcWidth, srcHeight, srcUnit, imageAttr)
C#  
public void DrawImage( 
   Image image,
   Rectangle destRect,
   int srcX,
   int srcY,
   int srcWidth,
   int srcHeight,
   GraphicsUnit srcUnit,
   ImageAttributes imageAttr
)

Parameters

image
Image object to draw.
destRect
Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
srcX
x-coordinate of the upper-left corner of the portion of the source image to draw.
srcY
y-coordinate of the upper-left corner of the portion of the source image to draw.
srcWidth
Width of the portion of the source image to draw.
srcHeight
Height of the portion of the source image to draw.
srcUnit
Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle.
imageAttr
ImageAttributes object that specifies recoloring and gamma information for the image object.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.