Package | away3dlite.materials |
Class | public class BitmapMaterial |
Inheritance | BitmapMaterial Material flash.events.EventDispatcher |
Subclasses | BitmapFileMaterial, MovieMaterial |
Property | Defined By | ||
---|---|---|---|
bitmap : BitmapData
Defines the bitmapData object to be used as the material's texture. | BitmapMaterial | ||
debug : Boolean
Switches on the debug outlines around each face drawn with the material. | Material | ||
height : int [read-only]
Returns the height of the material's bitmapdata object. | BitmapMaterial | ||
repeat : Boolean
Defines whether repeat is used when drawing the material. | BitmapMaterial | ||
smooth : Boolean
Defines whether smoothing is used when drawing the material. | BitmapMaterial | ||
width : int [read-only]
Returns the width of the material's bitmapdata object. | BitmapMaterial |
Method | Defined By | ||
---|---|---|---|
BitmapMaterial(bitmap:BitmapData = null)
Creates a new BitmapMaterial object. | BitmapMaterial |
bitmap | property |
bitmap:BitmapData
Defines the bitmapData object to be used as the material's texture.
public function get bitmap():BitmapData
public function set bitmap(value:BitmapData):void
height | property |
height:int
[read-only] Returns the height of the material's bitmapdata object.
public function get height():int
repeat | property |
repeat:Boolean
Defines whether repeat is used when drawing the material.
public function get repeat():Boolean
public function set repeat(value:Boolean):void
smooth | property |
smooth:Boolean
Defines whether smoothing is used when drawing the material.
public function get smooth():Boolean
public function set smooth(value:Boolean):void
width | property |
width:int
[read-only] Returns the width of the material's bitmapdata object.
public function get width():int
BitmapMaterial | () | Constructor |
public function BitmapMaterial(bitmap:BitmapData = null)
Creates a new BitmapMaterial
object.
bitmap:BitmapData (default = null ) — The bitmapData object to be used as the material's texture.
|