TextureProvider
Lens Studio v1.0.0+
Inherits from Provider
Child Classes: AnimatedTextureFileProvider
, CropTextureProvider
, DepthTextureProvider
, FaceTextureProvider
, FileTextureProvider
, ImagePickerTextureProvider
, ObjectTrackingTextureProvider
, ProceduralTextureProvider
, RenderTargetProvider
, ScreenTextureProvider
, SegmentationTextureProvider
, TextProvider
, VideoTextureProvider
Description
The base class for specialized Texture providers. Can be accessed through Texture.control.
Methods
getAspect()
: Number
Returns the texture’s aspect ratio, which is calculated as width / height.
getHeight()
: Number
Returns the height of the texture in pixels.
getWidth()
: Number
Returns the width of the texture in pixels.
Inherited Methods
getTypeName()
: String
Returns the name of this object’s type.
isOfType(String type)
: Boolean
Returns true if the object matches or derives from the passed in type.
Still Looking for help?
Visit Support