GraphicsDrawImage Method (Image, PointF, RectangleF, GraphicsUnit, ImageAttributes)

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

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.9.0.0 (20.9.0)
Syntax
C#
public void DrawImage(
	Image image,
	PointF[] destPoints,
	RectangleF srcRect,
	GraphicsUnit srcUnit,
	ImageAttributes imageAttr
)

Parameters

image
Type: System.DrawingImage
Image to draw.
destPoints
Type: System.DrawingPointF
Array of three PointF structures that define a parallelogram.
srcRect
Type: System.DrawingRectangleF
RectangleF structure that specifies the portion of the image object to draw.
srcUnit
Type: System.DrawingGraphicsUnit
Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter.
imageAttr
Type: System.Drawing.ImagingImageAttributes
ImageAttributes that specifies recoloring and gamma information for the image object.
See Also