Image

Image(string file, double x, double y, double w [, double h [, string type]])

Version

1.1

Description

Prints an image in the page. The upper-left corner and the width must be specified; the height may be given or automatically calculated to keep the image proportions.

Supported formats are JPEG and PNG.

For JPEG, all flavors are allowed: For PNG, are allowed: but are not supported: If a transparent color is defined, it will be taken into account (but will only be interpreted by Acrobat 4 and above).

The format may be specified explicitly or inferred from the file extension.

If an image is used several times, only one copy will be embedded into the file.

Parameters

file
Name of the file containing the image.
x
Abscissa of the upper-left corner.
y
Ordinate of the upper-left corner.
w
Width of the image in the page.
h
Height of the image in the page. If not specified or equal to zero, it is automatically calculated to keep the original proportions.
type
Image format. Possible values are (case insensitive) : JPG, JPEG, PNG. If not specified, the type is inferred from the file extension.

Index