Table of Contents

Method DrawImage

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

DrawImage(PdfImage, PdfPoint)

Draws the specified image, using its original size, at the specified location.

public void DrawImage(PdfImage image, PdfPoint location)

Parameters

image PdfImage

The image to draw.

location PdfPoint

PdfPoint structure that represents the location of the upper-left corner of the drawn image.

Remarks

The Images section describes ways to add images to PDF documents.

DrawImage(PdfImage, PdfPoint, double)

Draws the specified image, using its original size, at the specified location and with the specified rotation.

public void DrawImage(PdfImage image, PdfPoint location, double angle)

Parameters

image PdfImage

The image to draw.

location PdfPoint

PdfPoint structure that represents the location of the upper-left corner of the drawn image.

angle double

The rotation angle.

Remarks

The image gets rotated in a counter-clockwise direction.

The Images section describes ways to add images to PDF documents.

DrawImage(PdfImage, PdfPoint, PdfSize, double)

Draws the specified image at the specified location with specified size and with the specified rotation.

public void DrawImage(PdfImage image, PdfPoint location, PdfSize size, double angle)

Parameters

image PdfImage

The image to draw.

location PdfPoint

PdfPoint structure that represents the location of the upper-left corner of the drawn image.

size PdfSize

PdfSize structure that specifies the size of the drawn image.

angle 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.

The Images section describes ways to add images to PDF documents.

DrawImage(PdfImage, double, double)

Draws the specified image, using its original size, at the specified location.

public void DrawImage(PdfImage image, double x, double y)

Parameters

image PdfImage

The image 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.

Remarks

The Images section describes ways to add images to PDF documents.

DrawImage(PdfImage, double, double, double)

Draws the specified image, using its original size, at the specified location and with the specified rotation.

public void DrawImage(PdfImage image, double x, double y, double angle)

Parameters

image PdfImage

The image 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.

angle double

The rotation angle.

Remarks

The image gets rotated in a counter-clockwise direction.

The Images section describes ways to add images to PDF documents.

DrawImage(PdfImage, double, double, double, double, double)

Draws the specified image at the specified location with specified size and with the specified rotation.

public void DrawImage(PdfImage image, double x, double y, double width, double height, double angle)

Parameters

image PdfImage

The image 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

The width of the drawn image.

height double

The height of the drawn image.

angle 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.

The Images section describes ways to add images to PDF documents.