Package | com.transmote.flar.source |
Class | public class FLARLoaderSource |
Inheritance | FLARLoaderSource flash.display.Sprite |
Implements | IFLARSource |
Property | Defined by | ||
---|---|---|---|
downsampleRatio : Number [read-only]
amount by which the BitmapData source is downsampled
before being sent to FLARToolkit.
| FLARLoaderSource | ||
mirrored : Boolean
FLARLoaderSource cannot be mirrored;
method is here only for compliance with IFLARSource.
| FLARLoaderSource | ||
source : BitmapData [read-only]
retrieve the BitmapData source used for analysis.
| FLARLoaderSource | ||
sourceSize : Rectangle [read-only]
size of BitmapData source used for analysis.
| FLARLoaderSource |
Method | Defined by | ||
---|---|---|---|
FLARLoaderSource(contentPath:String, width:Number, height:Number, downsampleRatio:Number = 0.5)
constructor.
| FLARLoaderSource | ||
update():void
update the BitmapData source used for analysis.
| FLARLoaderSource |
downsampleRatio | property |
downsampleRatio:Number
[read-only]amount by which the BitmapData source is downsampled before being sent to FLARToolkit.
Implementation public function get downsampleRatio():Number
mirrored | property |
mirrored:Boolean
[read-write]FLARLoaderSource cannot be mirrored; method is here only for compliance with IFLARSource.
Implementation public function get mirrored():Boolean
public function set mirrored(value:Boolean):void
source | property |
source:BitmapData
[read-only]retrieve the BitmapData source used for analysis. NOTE: returns the actual BitmapData object, not a clone.
Implementation public function get source():BitmapData
sourceSize | property |
sourceSize:Rectangle
[read-only]size of BitmapData source used for analysis.
Implementation public function get sourceSize():Rectangle
FLARLoaderSource | () | constructor |
public function FLARLoaderSource(contentPath:String, width:Number, height:Number, downsampleRatio:Number = 0.5)
constructor.
ParameterscontentPath:String — filename to load.
|
|
width:Number — width of file.
|
|
height:Number — height of file.
|
|
downsampleRatio:Number (default = 0.5 ) — amount to downsample camera input.
adjust to balance between image quality and marker tracking performance.
a value of 1.0 results in no downsampling;
a value of 0.5 (the default) downsamples the camera input by half.
|
update | () | method |
public function update():void
update the BitmapData source used for analysis.