Graphics.DrawImageUnscaled
DrawImageUnscaled(Image, int, int)
Draws the specified image using its original physical size at the location specified by a coordinate pair.
public void DrawImageUnscaled(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
DrawImageUnscaled(Image, Rectangle)
Draws a specified image using its original physical size at a specified location.
public void DrawImageUnscaled(Image sourceImage, Rectangle rect)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
rect | Rectangle | Rectangle that specifies the upper-left corner of the drawn image. The X and Y properties of the rectangle specify the upper-left corner. The Width and Height properties are ignored. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImageUnscaled(Image, int, int, int, int)
Draws a specified image using its original physical size at a specified location.
public void DrawImageUnscaled(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 | The parameter is not used. |
height | Int32 | The parameter is not used. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also
DrawImageUnscaled(Image, Point)
Draws a specified image using its original physical size at a specified location.
public void DrawImageUnscaled(Image sourceImage, Point point)
Parameter | Type | Description |
---|
sourceImage | Image | The image to draw with. |
point | Point | Point structure that specifies the upper-left corner of the drawn image. |
Exceptions
exception | condition |
---|
ArgumentNullException | sourceImage is null. |
See Also