Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawImage Method > DrawImage Method (PdfImage, Double, Double, Double, Double, Double)
Draws the specified image at the specified location with specified size and with the specified rotation.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void DrawImage(
	PdfImage image,
	double x,
	double y,
	double width,
	double height,
	double angle
)
VB
Public Sub DrawImage ( 
	image As PdfImage,
	x As Double,
	y As Double,
	width As Double,
	height As Double,
	angle As Double
)

Parameters

image
Type: BitMiracle.Docotic.Pdf.PdfImage
The image to draw.
x
Type: System.Double
The x-coordinate of the upper-left corner of the drawn image.
y
Type: System.Double
The y-coordinate of the upper-left corner of the drawn image.
width
Type: System.Double
The width of the drawn image.
height
Type: System.Double
The height of the drawn image.
angle
Type: System.Double
The rotation angle.

Remarks

The image gets rotated in a counter-clockwise direction.

The image represented by the image is scaled to the specified size.

See Also