DrawImage Method
DrawImage(Image, Point)
Draws the specified Image, using its original size, at the specified location.
Declaration
public void DrawImage(Image image, Point origin)
Parameters
| Type | Name | Description |
|---|---|---|
| Image | image | Image to draw. |
| Point | origin | Point structure that represents the upper-left corner of the drawn image. |
DrawImage(Image, Rect)
Draws an image into the region defined by the specified Rect.
Declaration
public void DrawImage(Image image, Rect destinationRect)
Parameters
| Type | Name | Description |
|---|---|---|
| Image | image | Image to draw. |
| Rect | destinationRect | The region in which to draw
|
DrawImage(Image, Rect, Rect)
Draws the specified portion of the image into the region defined by the specified Rect.
Declaration
public void DrawImage(Image image, Rect destinationRect, Rect sourceRect)
Parameters
| Type | Name | Description |
|---|---|---|
| Image | image | Image to draw. |
| Rect | destinationRect | The region in which to draw
|
| Rect | sourceRect | Rect structure that specifies the portion of the
|