Packageorg.aswing.graphics
Classpublic class BitmapBrush
ImplementsIBrush

Encapsulate the fill parameter for flash.display.Graphics.beginBitmapFill()

See also

http://livedocs.macromedia.com/flex/2/langref/flash/display/Graphics.html#beginBitmapFill()


Public Methods
 MethodDefined by
  
BitmapBrush(bitmap:BitmapData, matrix:Matrix = null, repeat:Boolean = true, smooth:Boolean = false)
BitmapBrush
  
beginFill(target:Graphics):void
This method will be called by Graphics2D autumaticlly.
It applys the fill paramters to the instance of flash.display.Graphics
BitmapBrush
  
endFill(target:Graphics):void
This method will be called by Graphics2D autumaticlly.
It marks the end of filling
BitmapBrush
  
getBitmapData():BitmapData
BitmapBrush
  
getMatrix():Matrix
BitmapBrush
  
isRepeat():Boolean
BitmapBrush
  
isSmooth():Boolean
BitmapBrush
  
setBitmapData(bitmapData:BitmapData):void
BitmapBrush
  
setMatrix(matrix:Matrix):void
BitmapBrush
  
setRepeat(repeat:Boolean):void
BitmapBrush
  
setSmooth(smooth:Boolean):void
BitmapBrush
Constructor detail
BitmapBrush()constructor
public function BitmapBrush(bitmap:BitmapData, matrix:Matrix = null, repeat:Boolean = true, smooth:Boolean = false)Parameters
bitmap:BitmapData
 
matrix:Matrix (default = null)
 
repeat:Boolean (default = true)
 
smooth:Boolean (default = false)
Method detail
beginFill()method
public function beginFill(target:Graphics):void

This method will be called by Graphics2D autumaticlly.
It applys the fill paramters to the instance of flash.display.Graphics

Parameters
target:Graphics — the instance of a flash.display.Graphics
endFill()method 
public function endFill(target:Graphics):void

This method will be called by Graphics2D autumaticlly.
It marks the end of filling

Parameters
target:Graphics — the instance of a flash.display.Graphics
getBitmapData()method 
public function getBitmapData():BitmapData

Returns
BitmapData
getMatrix()method 
public function getMatrix():Matrix

Returns
Matrix
isRepeat()method 
public function isRepeat():Boolean

Returns
Boolean
isSmooth()method 
public function isSmooth():Boolean

Returns
Boolean
setBitmapData()method 
public function setBitmapData(bitmapData:BitmapData):void

Parameters
bitmapData:BitmapData
setMatrix()method 
public function setMatrix(matrix:Matrix):void

Parameters
matrix:Matrix
setRepeat()method 
public function setRepeat(repeat:Boolean):void

Parameters
repeat:Boolean
setSmooth()method 
public function setSmooth(smooth:Boolean):void

Parameters
smooth:Boolean