bitmapFillStyle Element

The bitmapFillStyle element fills a shape with a bitmap image.

Syntax

<bitmapFillStyle id="styleId" src="bitmapFile"
                       [width="bitmapWidth"] [height="bitmapHeight"]
                       [type="fillType"] [alpha="fillOpacity"]
                       [jpegQuality="jpegQuality"] [smoothing="allowSmoothing"]
/>

 

Attributes

Name

Description

Value type

Optional

Default Value

id

Style identifier, which must be unique among the styles described in XML file.

id

no

-

src

Path to the bitmap resource file used for filling.

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

-

width

Width of the bitmap image.*

coordinate

yes

0

height

Height of the bitmap image.*

coordinate

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.
clipped - the image be inserted into the shape only once.

string

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.

integer

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.

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, the image will be used with its original dimensions.

Parent Elements

styles collection

See Also

XML Schema Reference