The bitmapFillStyle element fills a shape with a bitmap image.
<bitmapFillStyle id="styleId" src="bitmapFile"
[width="bitmapWidth"] [height="bitmapHeight"]
[type="fillType"] [alpha="fillOpacity"]
[jpegQuality="jpegQuality"] [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 bitmap resource file used for filling. |
no |
- |
|
| width |
Width of the bitmap image.* |
yes |
0 |
|
| height |
Height of the bitmap image.* |
yes |
0 |
|
| type |
Fill style type, when a shape is larger than the bitmap fill image. This attribute can take the following values: tiled - the image will be tiled (repeated) to fill the entire shape. |
yes |
tiled |
|
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 |
|
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, the image will be used with its original dimensions.