image Element

The image element describes an image object with the following attributes.

Syntax

<image id="objectId" src="imageFile" x="xPosition" y="yPosition"
           width="imageWidth" height="imageHeight"
           [lineStyle="lineStyleId"] [alpha="imageOpacity"]
           [jpegQuality="jpegQuality"] [transparentColor="colorRGB"] [smoothing="allowSmoothing"]
/>

Attributes

Name

Description

Value type

Optional

Default Value

id

Object identifier

id

no

-

src

Path to the image file.

Use following notation for src attribute:
For resources located in local filesystem: "C:\My folder\myfile.png"
For web resources use HTTP URLs: "http://mysite.com/myfile.png"

string

no

-

x

Absolute x position (in pixels or twips)

coordinate

no

-

y

Absolute y position (in pixels or twips)

coordinate

no

-

width

Width of the bitmap image.*

coordinate

yes

0

height

Height of the bitmap image.*

coordinate

yes

0

lineStyle

Style id for the image border. If the lineStyle attribute is not specified, the image will have no border.

string

yes

-

alpha

Sets the transparancy of the image. It is the same for all pixels. This attribute can take values from 0 to 255.

0 - completely transparent.

255 - completely opaque.

integer

yes

255

transparentColor

Forces transparency for the specified color of the image. Using this attribute you can enable transparency for images loaded from source formats such as GPEG or BMP which does not support transparency.

color

yes

-

jpegQuality

Sets image quality for pictures in .jpeg format.

It can take values from 0 to 100.

When specified, all images will be resampled with the given quality to jpeg format. If not specified, jpeg images will be stored in a flash movie as jpeg images with the original quality, all the other images will be stored in .png format.

integer

yes

-

smoothing

Enables image smoothing

When specified, image will be rendered with smoothing (anti-aliasing).

boolean

yes

false

* When specified, the width and height attributes will be used to resize a bitmap image during Flash movie generation. If the width and height attributes are not specified or set to "0" the image will be used with its original dimensions.

Parent Elements

objects collection

See Also

XML Schema Reference, objects collection.