PdfCanvas.DrawImage Method (PdfImage, PdfPoint, PdfSize, Double)

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawImage Method > DrawImage Method (PdfImage, PdfPoint, PdfSize, 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,
	PdfPoint location,
	PdfSize size,
	double angle
)
VB
Public Sub DrawImage ( 
	image As PdfImage,
	location As PdfPoint,
	size As PdfSize,
	angle As Double
)

Parameters

image
Type: BitMiracle.Docotic.Pdf.PdfImage
The image to draw.
location
Type: BitMiracle.Docotic.Pdf.PdfPoint
PdfPoint structure that represents the location of the upper-left corner of the drawn image.
size
Type: BitMiracle.Docotic.Pdf.PdfSize
PdfSize structure that specifies the size 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