Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawXObject Method > DrawXObject Method (PdfXObject, Double, Double, Double)
Draws the specified object, using its original size, at the specified location and with the specified rotation.

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

Syntax

C#
public void DrawXObject(
	PdfXObject obj,
	double x,
	double y,
	double angle
)
VB
Public Sub DrawXObject ( 
	obj As PdfXObject,
	x As Double,
	y As Double,
	angle As Double
)

Parameters

obj
Type: BitMiracle.Docotic.Pdf.PdfXObject
The object to draw.
x
Type: System.Double
The x-coordinate of the upper-left corner of the drawn object.
y
Type: System.Double
The y-coordinate of the upper-left corner of the drawn object.
angle
Type: System.Double
The rotation angle.

Remarks

The object gets rotated in a counter-clockwise direction.

See Also