Dundas Chart for ASP.NET
DrawImageA Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl.Svg Namespace > SvgAnimation Class : DrawImageA Method


image
Image object to draw.
destRectA
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.
imageAttrs
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 Sub DrawImageA( _
   ByVal image As Image, _
   ByVal destRectA As RectangleA, _
   ByVal srcX As Single, _
   ByVal srcY As Single, _
   ByVal srcWidth As Single, _
   ByVal srcHeight As Single, _
   ByVal srcUnit As GraphicsUnit, _
   ByVal imageAttrs As ImageAttributes _
) 
Visual Basic (Usage) Copy Code
Dim instance As SvgAnimation
Dim image As Image
Dim destRectA As RectangleA
Dim srcX As Single
Dim srcY As Single
Dim srcWidth As Single
Dim srcHeight As Single
Dim srcUnit As GraphicsUnit
Dim imageAttrs As ImageAttributes
 
instance.DrawImageA(image, destRectA, srcX, srcY, srcWidth, srcHeight, srcUnit, imageAttrs)
C#  
public void DrawImageA( 
   Image image,
   RectangleA destRectA,
   float srcX,
   float srcY,
   float srcWidth,
   float srcHeight,
   GraphicsUnit srcUnit,
   ImageAttributes imageAttrs
)

Parameters

image
Image object to draw.
destRectA
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.
imageAttrs
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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.