Graphics.DrawImage
DrawImage(Image, PointF)
Draws the specified Image
, using its original physical size, at the specified location.
public void DrawImage(Image sourceImage, PointF point)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
point | PointF | PointF structure that represents the upper-left corner of the drawn image. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, float, float)
Draws the specified Image
, using its original physical size, at the specified location.
public void DrawImage(Image sourceImage, float x, float y)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
x | Single | The x-coordinate of the upper-left corner of the drawn image. |
y | Single | The y-coordinate of the upper-left corner of the drawn image. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, RectangleF)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, RectangleF rect)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rect | RectangleF | RectangleF structure that specifies the location and size of the drawn image. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, Rectangle, GraphicsUnit)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, Rectangle rectDestination, GraphicsUnit graphicsUnit)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rectDestination | Rectangle | The destination rectangle. |
graphicsUnit | GraphicsUnit | The graphics unit. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, RectangleF, GraphicsUnit)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, RectangleF rectDestination, GraphicsUnit graphicsUnit)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rectDestination | RectangleF | The destination rectangle. |
graphicsUnit | GraphicsUnit | The graphics unit. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, Rectangle, GraphicsUnit, ImageAttributes)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, Rectangle rectDestination, GraphicsUnit graphicsUnit,
ImageAttributes imageAttributes)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rectDestination | Rectangle | The destination rectangle. |
graphicsUnit | GraphicsUnit | The graphics unit. |
imageAttributes | ImageAttributes | The image attributes. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, RectangleF, GraphicsUnit, ImageAttributes)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, RectangleF rectDestination, GraphicsUnit graphicsUnit,
ImageAttributes imageAttributes)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rectDestination | RectangleF | The destination rectangle to draw in. |
graphicsUnit | GraphicsUnit | The graphics unit. |
imageAttributes | ImageAttributes | The image attributes. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, Rectangle rectSource, Rectangle rectDestination,
GraphicsUnit graphicsUnit)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rectSource | Rectangle | The rect source. |
rectDestination | Rectangle | The rect destination. |
graphicsUnit | GraphicsUnit | The graphics unit. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, RectangleF, RectangleF, GraphicsUnit)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, RectangleF rectSource, RectangleF rectDestination,
GraphicsUnit graphicsUnit)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rectSource | RectangleF | The rect source. |
rectDestination | RectangleF | The rect destination. |
graphicsUnit | GraphicsUnit | The graphics unit. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, Rectangle, Rectangle, GraphicsUnit, ImageAttributes)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, Rectangle rectSource, Rectangle rectDestination,
GraphicsUnit graphicsUnit, ImageAttributes imageAttributes)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rectSource | Rectangle | The rect source. |
rectDestination | Rectangle | The rect destination. |
graphicsUnit | GraphicsUnit | The graphics unit. |
imageAttributes | ImageAttributes | The image attributes. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, RectangleF, RectangleF, GraphicsUnit, ImageAttributes)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, RectangleF rectSource, RectangleF rectDestination,
GraphicsUnit graphicsUnit, ImageAttributes imageAttributes)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rectSource | RectangleF | The source rectangle. |
rectDestination | RectangleF | The destination rectangle. |
graphicsUnit | GraphicsUnit | The graphics unit to use. |
imageAttributes | ImageAttributes | The image attributes to use. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, Point[])
Draws the specified portion of the specified image at the specified location and with the specified size.
public void DrawImage(Image image, Point[] destPoints)
Parameter | Type | Description |
---|
image | Image | The image to draw. |
destPoints | Point[] | Array of three PointF structures that define a parallelogram. |
See Also
DrawImage(Image, Point[], Rectangle)
Draws the specified portion of the specified image at the specified location and with the specified size.
public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect)
Parameter | Type | Description |
---|
image | Image | The image to draw. |
destPoints | Point[] | Array of three PointF structures that define a parallelogram. |
srcRect | Rectangle | The source rectangle. |
See Also
DrawImage(Image, Point[], Rectangle, GraphicsUnit)
Draws the specified portion of the specified image at the specified location and with the specified size.
public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit)
Parameter | Type | Description |
---|
image | Image | The image to draw. |
destPoints | Point[] | Array of three PointF structures that define a parallelogram. |
srcRect | Rectangle | The source rectangle. |
srcUnit | GraphicsUnit | The units of measure. |
See Also
DrawImage(Image, Point[], Rectangle, GraphicsUnit, ImageAttributes)
Draws the specified portion of the specified image at the specified location and with the specified size.
public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit,
ImageAttributes imageAttributes)
Parameter | Type | Description |
---|
image | Image | The image to draw. |
destPoints | Point[] | Array of three PointF structures that define a parallelogram. |
srcRect | Rectangle | The source rectangle. |
srcUnit | GraphicsUnit | The units of measure. |
imageAttributes | ImageAttributes | The image attributes. |
See Also
DrawImage(Image, PointF[])
Draws the specified portion of the specified image at the specified location and with the specified size.
public void DrawImage(Image image, PointF[] destPoints)
Parameter | Type | Description |
---|
image | Image | The image to draw. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram. |
Exceptions
exception | condition |
---|
ArgumentNullException | image |
See Also
DrawImage(Image, PointF[], RectangleF)
Draws the specified portion of the specified image at the specified location and with the specified size.
public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect)
Parameter | Type | Description |
---|
image | Image | The image to draw. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram. |
srcRect | RectangleF | The source rectangle. |
See Also
DrawImage(Image, PointF[], RectangleF, GraphicsUnit)
Draws the specified portion of the specified image at the specified location and with the specified size.
public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit)
Parameter | Type | Description |
---|
image | Image | The image to draw. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram. |
srcRect | RectangleF | The source rectangle. |
srcUnit | GraphicsUnit | The units of measure. |
See Also
DrawImage(Image, PointF[], RectangleF, GraphicsUnit, ImageAttributes)
Draws the specified portion of the specified image at the specified location and with the specified size.
public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit,
ImageAttributes imageAttributes)
Parameter | Type | Description |
---|
image | Image | The image to draw. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram. |
srcRect | RectangleF | The source rectangle. |
srcUnit | GraphicsUnit | The units of measure. |
imageAttributes | ImageAttributes | The image attributes. |
See Also
DrawImage(Image, float, float, float, float)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, float x, float y, float width, float height)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
x | Single | The x-coordinate of the upper-left corner of the drawn image. |
y | Single | The y-coordinate of the upper-left corner of the drawn image. |
width | Single | Width of the drawn image. |
height | Single | Height of the drawn image. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, Point)
Draws the specified Image
, using its original physical size, at the specified location.
public void DrawImage(Image sourceImage, Point point)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
point | Point | Point structure that represents the location of the upper-left corner of the drawn image. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, int, int)
Draws the specified image, using its original physical size, at the location specified by a coordinate pair.
public void DrawImage(Image sourceImage, int x, int y)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
x | Int32 | The x-coordinate of the upper-left corner of the drawn image. |
y | Int32 | The y-coordinate of the upper-left corner of the drawn image. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, Rectangle)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, Rectangle rect)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImage(Image, int, int, int, int)
Draws the specified Image
at the specified location and with the specified size.
public void DrawImage(Image sourceImage, int x, int y, int width, int height)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
x | Int32 | The x-coordinate of the upper-left corner of the drawn image. |
y | Int32 | The y-coordinate of the upper-left corner of the drawn image. |
width | Int32 | Width of the drawn image. |
height | Int32 | Height of the drawn image. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also