GraphicsExtensionsDrawImage(IGraphics, IBitmap, RectangleF) Method

Draws the specified portion of the specified Image at the specified location.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.2.0
C#
public static void DrawImage(
	this IGraphics g,
	IBitmap bmp,
	RectangleF destRect
)

Parameters

g  IGraphics
bmp  IBitmap
IBitmap to draw.
destRect  RectangleF
Specifies the bounds of the drawn image.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGraphics. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also