GraphicsExtensionsDrawImage(IGraphics, IBitmap, PointF) 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,
	PointF pnt
)

Parameters

g  IGraphics
bmp  IBitmap
IBitmap to draw.
pnt  PointF
Specifies the upper-left corner 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