Packagecv.orion.renderers
Classpublic class BitmapRenderer
InheritanceBitmapRenderer Inheritance flash.display.Bitmap
SubclassesPixelRenderer

The BitmapRenderer actually draws the particles and all the animations as a single bitmap. This allows you to enabled filters to give really interesting effects which woudl only be possible as a bitmap.



Public Properties
 PropertyDefined by
  debug : Boolean = false
Turns on debug lines to outline the emitter and canvas dimensions
BitmapRenderer
  drawTargets : Array
An array of items to be drawn to th renderer.
BitmapRenderer
  paused : Boolean
Gets or sets the paused property
BitmapRenderer
  postFilters : Array
Fitlers that will be applied after new particles have been drawn to the bitmap.
BitmapRenderer
  preFilters : Array
Filters that will be applied before new particles are drawn to the bitmap.
BitmapRenderer
Public Methods
 MethodDefined by
  
BitmapRenderer
  
clear():void
Clears the renderer.
BitmapRenderer
  
Gets the palletemap if it was set.
BitmapRenderer
  
pause():void
Pauses the renderer
BitmapRenderer
  
play():void
Resumes or plays the renderer
BitmapRenderer
  
render(e:Event = null):void
Calls the renderer to draw the particles.
BitmapRenderer
  
setPalletteMap(red:Array = null, green:Array = null, blue:Array = null, alpha:Array = null):void
Remaps the color channel values in an image that has up to four arrays of color palette data, one for each channel.
BitmapRenderer
Protected Methods
 MethodDefined by
  
stageHandler(e:Event):void
Clears and inits the bitmap data once it has access to the stage.
BitmapRenderer
Property detail
debugproperty
public var debug:Boolean = false

Turns on debug lines to outline the emitter and canvas dimensions

drawTargetsproperty 
public var drawTargets:Array

An array of items to be drawn to th renderer.

pausedproperty 
paused:Boolean  [read-write]

Gets or sets the paused property

Implementation
    public function get paused():Boolean
    public function set paused(value:Boolean):void
postFiltersproperty 
public var postFilters:Array

Fitlers that will be applied after new particles have been drawn to the bitmap.

preFiltersproperty 
public var preFilters:Array

Filters that will be applied before new particles are drawn to the bitmap.

Constructor detail
BitmapRenderer()constructor
public function BitmapRenderer()
Method detail
clear()method
public function clear():void

Clears the renderer.

getPalletteMap()method 
public function getPalletteMap():Array

Gets the palletemap if it was set. If it wasn't set, it will just return an empty or null array.

Returns
Array — An array of the pallette colors.
pause()method 
public function pause():void

Pauses the renderer

play()method 
public function play():void

Resumes or plays the renderer

render()method 
public function render(e:Event = null):void

Calls the renderer to draw the particles.

Parameters
e:Event (default = null) — The emitter associated with the particles.
setPalletteMap()method 
public function setPalletteMap(red:Array = null, green:Array = null, blue:Array = null, alpha:Array = null):void

Remaps the color channel values in an image that has up to four arrays of color palette data, one for each channel.

Parameters
red:Array (default = null) — If redArray is not null, red = redArray[source red value] else red = source rect value.
 
green:Array (default = null) — If greenArray is not null, green = greenArray[source green value] else green = source green value.
 
blue:Array (default = null) — If blueArray is not null, blue = blueArray[source blue value] else blue = source blue value.
 
alpha:Array (default = null) — If alphaArray is not null, alpha = alphaArray[source alpha value] else alpha = source alpha value.
stageHandler()method 
protected function stageHandler(e:Event):void

Clears and inits the bitmap data once it has access to the stage.

Parameters
e:Event