GraphicsExtensionsDrawImage(IGraphics, IBitmap, RectangleF) Method
Draws the specified portion of the specified Image at the specified location.
Namespace: SMath.DrawingAssembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
public static void DrawImage(
this IGraphics g,
IBitmap bmp,
RectangleF destRect
)
<ExtensionAttribute>
Public Shared Sub DrawImage (
g As IGraphics,
bmp As IBitmap,
destRect As RectangleF
)
public:
[ExtensionAttribute]
static void DrawImage(
IGraphics^ g,
IBitmap^ bmp,
RectangleF destRect
)
[<ExtensionAttribute>]
static member DrawImage :
g : IGraphics *
bmp : IBitmap *
destRect : RectangleF -> unit
- g IGraphics
- bmp IBitmap
- IBitmap to draw.
- destRect RectangleF
- Specifies the bounds 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).