Packagemx.graphics
Classpublic class BitmapFill
InheritanceBitmapFill Inheritance Object
Implements IFill

Defines a set of values used to fill an area on screen with a bitmap or other DisplayObject.

See also

mx.graphics.IFill
flash.display.Bitmap
flash.display.BitmapData
flash.display.DisplayObject


Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  offsetX : Number = 0
How far the bitmap is horizontally offset from the origin.
BitmapFill
  offsetY : Number = 0
How far the bitmap is vertically offset from the origin.
BitmapFill
  originX : Number = 0
The horizontal origin for the bitmap fill.
BitmapFill
  originY : Number = 0
The vertical origin for the bitmap fill.
BitmapFill
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  repeat : Boolean = true
Whether the bitmap is repeated to fill the area.
BitmapFill
  rotation : Number = 0.0
The number of degrees to rotate the bitmap.
BitmapFill
  scaleX : Number = 1.0
The percent to horizontally scale the bitmap when filling, from 0.0 to 1.0.
BitmapFill
  scaleY : Number = 1.0
The percent to vertically scale the bitmap when filling, from 0.0 to 1.0.
BitmapFill
  smooth : Boolean = false
A flag indicating whether to smooth the bitmap data when filling with it.
BitmapFill
  source : Object
The source used for the bitmap fill.
BitmapFill
Public Methods
 MethodDefined By
  
Constructor.
BitmapFill
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail
offsetXproperty
public var offsetX:Number = 0

How far the bitmap is horizontally offset from the origin. This adjustment is performed after rotation and scaling.

The default value is 0.

offsetYproperty 
public var offsetY:Number = 0

How far the bitmap is vertically offset from the origin. This adjustment is performed after rotation and scaling.

The default value is 0.

originXproperty 
public var originX:Number = 0

The horizontal origin for the bitmap fill. The bitmap fill is offset so that this point appears at the origin. Scaling and rotation of the bitmap are performed around this point.

The default value is 0.

originYproperty 
public var originY:Number = 0

The vertical origin for the bitmap fill. The bitmap fill is offset so that this point appears at the origin. Scaling and rotation of the bitmap are performed around this point.

The default value is 0.

repeatproperty 
public var repeat:Boolean = true

Whether the bitmap is repeated to fill the area. Set to true to cause the fill to tile outward to the edges of the filled region. Set to false to end the fill at the edge of the region.

The default value is true.

rotationproperty 
public var rotation:Number = 0.0

The number of degrees to rotate the bitmap. Valid values range from 0.0 to 360.0.

The default value is 0.

scaleXproperty 
public var scaleX:Number = 1.0

The percent to horizontally scale the bitmap when filling, from 0.0 to 1.0. If 1.0, the bitmap is filled at its natural size.

The default value is 1.0.

scaleYproperty 
public var scaleY:Number = 1.0

The percent to vertically scale the bitmap when filling, from 0.0 to 1.0. If 1.0, the bitmap is filled at its natural size.

The default value is 1.0.

smoothproperty 
public var smooth:Boolean = false

A flag indicating whether to smooth the bitmap data when filling with it.

The default value is false.

sourceproperty 
source:Object

The source used for the bitmap fill. The fill can render from various graphical sources, including the following:

The default value is null.



Implementation
    public function get source():Object
    public function set source(value:Object):void
Constructor Detail
BitmapFill()Constructor
public function BitmapFill()

Constructor.