GraphicsExtensionsDrawImage(IGraphics, IBitmap, Single, Single) Method
Draws the specified portion of the specified Image at the specified location.
Namespace: SMath.DrawingAssembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.2.0
public static void DrawImage(
this IGraphics g,
IBitmap bmp,
float x,
float y
)
<ExtensionAttribute>
Public Shared Sub DrawImage (
g As IGraphics,
bmp As IBitmap,
x As Single,
y As Single
)
public:
[ExtensionAttribute]
static void DrawImage(
IGraphics^ g,
IBitmap^ bmp,
float x,
float y
)
[<ExtensionAttribute>]
static member DrawImage :
g : IGraphics *
bmp : IBitmap *
x : float32 *
y : float32 -> unit
- g IGraphics
- bmp IBitmap
- IBitmap to draw.
- x Single
- Specifies the left coordinate of the drawn image.
- y Single
- Specifies the upper coordinate of the drawn image.
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).