Packagepegas.draw
Classpublic final class FillBitmapStyle
InheritanceFillBitmapStyle Inheritance CoreObject
ImplementsIFillStyle

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, matrix:Matrix = null, repeat:Boolean = true, smooth:Boolean = false)
Creates a new FillBitmapStyle instance.
FillBitmapStyle
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreObject
  
init(graphic:Graphics):void
Initialize and launch the beginBitmapFill method of the specified Graphics reference.
FillBitmapStyle
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
CoreObject
 Inherited
toString():String
Returns the string representation of this instance.
CoreObject
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, matrix:Matrix = null, repeat:Boolean = true, smooth:Boolean = false)

Creates a new FillBitmapStyle instance.

Parameters
bitmap:BitmapData — 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) — A value from the InterpolationMethod class that specifies which value to use: InterpolationMethod.linearRGB or InterpolationMethod.RGB.
Method detail
init()method
public function init(graphic:Graphics):void

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

Parameters
graphic:Graphics