PdfGraphics.DrawImage Method
Overloads
| Name | Description |
|---|---|
| DrawImage(PdfImage,Double,Double,Double,Double) | Draws the specified PdfImage at the specified location and with the specified size. |
| DrawImage(PdfImage,Double,Double,Double,Double,Double) | Draws the specified PdfImage at the specified location and with the specified size. |
| DrawImage(PdfImage,Double,Double,Double,Double,Double,PdfFlipDirection) | Draws the specified PdfImage at the specified location and with the specified size. |
DrawImage(PdfImage,Double,Double,Double,Double)
Draws the specified PdfImage at the specified location and with the specified size.
Parameters
image PdfImage
PdfImage to draw.
x Double
The x-coordinate of the upper-left corner of the drawn image.
y Double
The y-coordinate of the upper-left corner of the drawn image.
width Double
Width of the drawn image.
height Double
Height of the drawn image.
Remarks
If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the image is scaled automatically to fit the given area and the original aspect ratio is kept.
DrawImage(PdfImage,Double,Double,Double,Double,Double)
Draws the specified PdfImage at the specified location and with the specified size.
public PdfSize DrawImage(PdfImage image, double x, double y, double width, double height, double rotation)
Parameters
image PdfImage
PdfImage to draw.
x Double
The x-coordinate of the upper-left corner of the drawn image.
y Double
The y-coordinate of the upper-left corner of the drawn image.
width Double
Width of the drawn image.
height Double
Height of the drawn image.
rotation Double
Rotation angle of the drawn image.
Remarks
If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the image is scaled automatically to fit the given area and the original aspect ratio is kept.
DrawImage(PdfImage,Double,Double,Double,Double,Double,PdfFlipDirection)
Draws the specified PdfImage at the specified location and with the specified size.
public PdfSize DrawImage(PdfImage image, double x, double y, double width, double height, double rotation, PdfFlipDirection flipDirection)
Parameters
image PdfImage
PdfImage to draw.
x Double
The x-coordinate of the upper-left corner of the drawn image.
y Double
The y-coordinate of the upper-left corner of the drawn image.
width Double
Width of the drawn image.
height Double
Height of the drawn image.
rotation Double
Rotation angle of the drawn image.
flipDirection PdfFlipDirection
Direction for flipping the drawn image.
Remarks
If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the image is scaled automatically to fit the given area and the original aspect ratio is kept.