Graphics.DrawImage
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 image, int x, int y)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
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. |
See Also
- class Image
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, float, float)
Draws the specified Image, using its original physical size, at the specified location.
public void DrawImage(Image image, float x, float y)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
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. |
See Also
- class Image
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, Point)
Draws the specified Image, using its original physical size, at the specified location.
public void DrawImage(Image image, Point point)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
point | Point | Point structure that represents the location of the upper-left corner of the drawn image. |
See Also
- class Image
- struct Point
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, Point[])
Draws the specified Е:Image at the specified location and with the specified shape and size.
public void DrawImage(Image image, Point[] destPoints)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destPoints | Point[] | Array of three Point structures that define a parallelogram. |
See Also
- class Image
- struct Point
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, PointF)
Draws the specified Image, using its original physical size, at the specified location.
public void DrawImage(Image image, PointF point)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
point | PointF | PointF structure that represents the upper-left corner of the drawn image. |
See Also
- class Image
- struct PointF
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, PointF[])
Draws the specified Image at the specified location and with the specified shape and size.
public void DrawImage(Image image, PointF[] destPoints)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram. |
See Also
- class Image
- struct PointF
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, int, int, int, int)
Draws the specified Image at the specified location and with the specified size.
public void DrawImage(Image image, int x, int y, int width, int height)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
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. |
See Also
- class Image
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, Rectangle)
Draws the specified Image at the specified location and with the specified size.
public void DrawImage(Image image, Rectangle rect)
Parameter | Type | Description |
---|---|---|
image | Image | The Image to draw. |
rect | Rectangle | The rectangle that specifies the location and size of the drawn image. |
See Also
- class Image
- struct Rectangle
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, RectangleF)
Draws the specified Image at the specified location and with the specified size.
public void DrawImage(Image image, RectangleF rect)
Parameter | Type | Description |
---|---|---|
image | Image | The Image to draw. |
rect | RectangleF | The rectangle that specifies the location and size of the drawn image. |
See Also
- class Image
- struct RectangleF
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, float, float, float, float)
Draws the specified Image, using its original physical size, at the specified location and with the specified size.
public void DrawImage(Image image, float x, float y, float width, float height)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
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 | The width of the drawn image. |
height | Single | The height of the drawn image. |
See Also
- class Image
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, int, int, Rectangle, GraphicsUnit)
Draws a portion of an image at a specified location.
public void DrawImage(Image image, int x, int y, Rectangle srcRect, GraphicsUnit srcUnit)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
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. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the image object to draw. |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter. |
See Also
- class Image
- struct Rectangle
- enum GraphicsUnit
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, float, float, RectangleF, GraphicsUnit)
Draws a portion of an image at a specified location.
public void DrawImage(Image image, float x, float y, RectangleF srcRect, GraphicsUnit srcUnit)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
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. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the image object to draw. |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter. |
See Also
- class Image
- struct RectangleF
- enum GraphicsUnit
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
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 | Image to draw. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the image object to draw. |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter. |
See Also
- class Image
- struct PointF
- struct RectangleF
- enum GraphicsUnit
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
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 | Image to draw. |
destPoints | Point[] | Array of three Point structures that define a parallelogram. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the image object to draw. |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter. |
See Also
- class Image
- struct Point
- struct Rectangle
- enum GraphicsUnit
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
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 imageAttr)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destPoints | Point[] | Array of three Point structures that define a parallelogram. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the image object to draw. |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter. |
imageAttr | ImageAttributes | ImageAttributes that specifies recoloring and gamma information for the image object. |
See Also
- class Image
- struct Point
- struct Rectangle
- enum GraphicsUnit
- class ImageAttributes
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
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 imageAttr)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destPoints | PointF[] | Array of three PointF structures that define a parallelogram. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the image object to draw. |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter. |
imageAttr | ImageAttributes | ImageAttributes that specifies recoloring and gamma information for the image object. |
See Also
- class Image
- struct PointF
- struct RectangleF
- enum GraphicsUnit
- class ImageAttributes
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)
Draws the specified portion of the specified Image at the specified location and with the specified size.
public void DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcRect | Rectangle | Rectangle structure that specifies the portion of the image object to draw. |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter. |
See Also
- class Image
- struct Rectangle
- enum GraphicsUnit
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, Rectangle, int, int, int, int, GraphicsUnit, ImageAttributes)
Draws the specified portion of the specified Image at the specified location and with the specified size.
public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth,
int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcX | Int32 | The x-coordinate of the upper-left corner of the portion of the source image to draw. |
srcY | Int32 | The y-coordinate of the upper-left corner of the portion of the source image to draw. |
srcWidth | Int32 | Width of the portion of the source image to draw. |
srcHeight | Int32 | Height of the portion of the source image to draw. |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle. |
imageAttr | ImageAttributes | ImageAttributes that specifies recoloring and gamma information for the image object. |
See Also
- class Image
- struct Rectangle
- enum GraphicsUnit
- class ImageAttributes
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, RectangleF, RectangleF, GraphicsUnit)
Draws the specified portion of the specified Image at the specified location and with the specified size.
public void DrawImage(Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | RectangleF | RectangleF structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcRect | RectangleF | RectangleF structure that specifies the portion of the image object to draw. |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used by the srcRect parameter. |
See Also
- class Image
- struct RectangleF
- enum GraphicsUnit
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, Rectangle, int, int, int, int, GraphicsUnit)
Draws the specified portion of the specified Image at the specified location and with the specified size.
public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth,
int srcHeight, GraphicsUnit srcUnit)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcX | Int32 | The x-coordinate of the upper-left corner of the portion of the source image to draw. |
srcY | Int32 | The y-coordinate of the upper-left corner of the portion of the source image to draw. |
srcWidth | Int32 | Width of the portion of the source image to draw. |
srcHeight | Int32 | Height of the portion of the source image to draw |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle. |
See Also
- class Image
- struct Rectangle
- enum GraphicsUnit
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, Rectangle, float, float, float, float, GraphicsUnit)
Draws the specified portion of the specified Image at the specified location and with the specified size.
public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth,
float srcHeight, GraphicsUnit srcUnit)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcX | Single | The x-coordinate of the upper-left corner of the portion of the source image to draw. |
srcY | Single | The y-coordinate of the upper-left corner of the portion of the source image to draw. |
srcWidth | Single | Width of the portion of the source image to draw. |
srcHeight | Single | Height of the portion of the source image to draw |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle. |
See Also
- class Image
- struct Rectangle
- enum GraphicsUnit
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawImage(Image, Rectangle, float, float, float, float, GraphicsUnit, ImageAttributes)
Draws the specified portion of the specified Image at the specified location and with the specified size.
public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth,
float srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs)
Parameter | Type | Description |
---|---|---|
image | Image | Image to draw. |
destRect | Rectangle | Rectangle structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle. |
srcX | Single | The x-coordinate of the upper-left corner of the portion of the source image to draw. |
srcY | Single | The y-coordinate of the upper-left corner of the portion of the source image to draw. |
srcWidth | Single | Width of the portion of the source image to draw. |
srcHeight | Single | Height of the portion of the source image to draw |
srcUnit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the units of measure used to determine the source rectangle. |
imageAttrs | ImageAttributes | ImageAttributes that specifies recoloring and gamma information for the image object. |
See Also
- class Image
- struct Rectangle
- enum GraphicsUnit
- class ImageAttributes
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common