The image element describes an image object with the following attributes.
<image id="objectId" src="imageFile" x="xPosition" y="yPosition"
width="imageWidth" height="imageHeight"
[lineStyle="lineStyleId"] [alpha="imageOpacity"]
[jpegQuality="jpegQuality"] [transparentColor="colorRGB"] [smoothing="allowSmoothing"]
/>
Name |
Description |
Value type |
Optional |
Default Value |
| id |
Style identifier, which must be unique among the styles described in XML file. |
no |
- |
|
| src |
Path to the image file. |
no |
- |
|
| x |
Absolute x position (in pixels or twips) |
no |
- |
|
| y |
Absolute y position (in pixels or twips) |
no |
- |
|
| width |
Width of the bitmap image.* |
yes |
0 |
|
| height |
Height of the bitmap image.* |
yes |
0 |
|
| lineStyle |
Style id for the image border. If the lineStyle attribute is not specified, the image will have no border. |
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. |
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. | 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. |
yes |
- |
|
smoothing |
Enables image smoothing When specified, image will be rendered with smoothing (anti-aliasing). |
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.