Packagegraphics
Classpublic class FillBitmapStyle
InheritanceFillBitmapStyle Inheritance Object
Implements IFillStyle

Defines the fill style of the vector shapes. See the flash.display.graphics.beginBitmapFill method.



Public Properties
 PropertyDefined By
  bitmap : BitmapData
A transparent or opaque bitmap image that contains the bits to be displayed.
FillBitmapStyle
  matrix : Matrix
A matrix object (of the flash.geom.Matrix class), which you can use to define transformations on the bitmap.
FillBitmapStyle
  repeat : Boolean
If true, the bitmap image repeats in a tiled pattern.
FillBitmapStyle
  smooth : Boolean
If false, upscaled bitmap images are rendered by using a nearest-neighbor algorithm and look pixelated.
FillBitmapStyle
Public Methods
 MethodDefined By
  
FillBitmapStyle(bitmap:BitmapData = null, matrix:Matrix = null, repeat:Boolean = true, smooth:Boolean = false)
Creates a new FillBitmapStyle instance.
FillBitmapStyle
  
apply(graphic:Graphics):void
Initialize and launch the beginBitmapFill method of the specified Graphics reference.
FillBitmapStyle
  
clone():*
Creates and returns a shallow copy of the object.
FillBitmapStyle
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
FillBitmapStyle
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
FillBitmapStyle
Property Detail
bitmapproperty
public var bitmap:BitmapData

A transparent or opaque bitmap image that contains the bits to be displayed.

matrixproperty 
public var matrix:Matrix

A matrix object (of the flash.geom.Matrix class), which you can use to define transformations on the bitmap.

repeatproperty 
public var repeat:Boolean

If true, the bitmap image repeats in a tiled pattern. If false, the bitmap image does not repeat, and the edges of the bitmap are used for any fill area that extends beyond the bitmap.

smoothproperty 
public var smooth:Boolean

If false, upscaled bitmap images are rendered by using a nearest-neighbor algorithm and look pixelated. If true, upscaled bitmap images are rendered by using a bilinear algorithm. Rendering by using the nearest neighbor algorithm is usually faster.

Constructor Detail
FillBitmapStyle()Constructor
public function FillBitmapStyle(bitmap:BitmapData = null, matrix:Matrix = null, repeat:Boolean = true, smooth:Boolean = false)

Creates a new FillBitmapStyle instance.

Parameters
bitmap:BitmapData (default = null) — A transparent or opaque bitmap image that contains the bits to be displayed.
 
matrix:Matrix (default = null) — A matrix object (of the flash.geom.Matrix class), which you can use to define transformations on the bitmap.
 
repeat:Boolean (default = true) — If true, the bitmap image repeats in a tiled pattern. If false, the bitmap image does not repeat, and the edges of the bitmap are used for any fill area that extends beyond the bitmap.
 
smooth:Boolean (default = false) — If false, upscaled bitmap images are rendered by using a nearest-neighbor algorithm and look pixelated. If true, upscaled bitmap images are rendered by using a bilinear algorithm. Rendering by using the nearest neighbor algorithm is usually faster.
Method Detail
apply()method
public function apply(graphic:Graphics):void

Initialize and launch the beginBitmapFill method of the specified Graphics reference.

Parameters

graphic:Graphics

clone()method 
public function clone():*

Creates and returns a shallow copy of the object.

Returns
* — A new object that is a shallow copy of this instance.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object. This method is not complete we can't serialize a BitmapData object, in the constructor of the source representation this value is always "null".

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.