Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawXObject Method > DrawXObject Method (PdfXObject, PdfPoint, PdfSize, Double)
Draws the specified object 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 DrawXObject(
	PdfXObject obj,
	PdfPoint location,
	PdfSize size,
	double angle
)
VB
Public Sub DrawXObject ( 
	obj As PdfXObject,
	location As PdfPoint,
	size As PdfSize,
	angle As Double
)

Parameters

obj
Type: BitMiracle.Docotic.Pdf.PdfXObject
The object to draw.
location
Type: BitMiracle.Docotic.Pdf.PdfPoint
PdfPoint structure that represents the location of the upper-left corner of the drawn object.
size
Type: BitMiracle.Docotic.Pdf.PdfSize
PdfSize structure that specifies the size of the drawn object.
angle
Type: System.Double
The rotation angle.

Remarks

The object gets rotated in a counter-clockwise direction.

The object represented by the obj is scaled to the specified size.

See Also