# TextObjectFilterRender

@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR2)
open class TextObjectFilterRender : BaseObjectFilterRender

Created by pedro on 27/07/18.

## Constructors

TextObjectFilterRender
Link copied to clipboard
constructor()

## Properties

FLOAT_SIZE_BYTES
Link copied to clipboard
val FLOAT_SIZE_BYTES: Int = 4
previewHeight
Link copied to clipboard
open val previewHeight: Int
previewWidth
Link copied to clipboard
open val previewWidth: Int
renderHandler
Link copied to clipboard
open var renderHandler: RenderHandler
renderMode
Link copied to clipboard
open var renderMode: RenderMode
SQUARE_VERTEX_DATA_POS_OFFSET
Link copied to clipboard
val SQUARE_VERTEX_DATA_POS_OFFSET: Int = 0
SQUARE_VERTEX_DATA_STRIDE_BYTES
Link copied to clipboard
val SQUARE_VERTEX_DATA_STRIDE_BYTES: Int = 20
SQUARE_VERTEX_DATA_UV_OFFSET
Link copied to clipboard
val SQUARE_VERTEX_DATA_UV_OFFSET: Int = 3
width
Link copied to clipboard
protected open var width: Int

## Functions

addText
Link copied to clipboard
open fun addText(text: String)
draw
Link copied to clipboard
open fun draw()
getOriginalScale
Link copied to clipboard
open fun getOriginalScale(): PointF
getPosition
Link copied to clipboard
open fun getPosition(): PointF
getPreviousTexId
Link copied to clipboard
open fun getPreviousTexId(): Int
getRotation
Link copied to clipboard
open fun getRotation(): Int
getScale
Link copied to clipboard
open fun getScale(): PointF
getTexId
Link copied to clipboard
open fun getTexId(): Int
initFBOLink
Link copied to clipboard
open fun initFBOLink()
initGl
Link copied to clipboard
abstract fun initGl(width: Int, height: Int, context: Context, previewWidth: Int, previewHeight: Int)
open fun initGl(width: Int, height: Int, context: Context, previewWidth: Int, previewHeight: Int)
release
Link copied to clipboard
open fun release()
setAlpha
Link copied to clipboard
open fun setAlpha(alpha: Float)
setDefaultScale
Link copied to clipboard
open fun setDefaultScale(streamWidth: Int, streamHeight: Int)
setPosition
Link copied to clipboard
open fun setPosition(positionTo: TranslateTo)
open fun setPosition(x: Float, y: Float)
setPreviewSize
Link copied to clipboard
open fun setPreviewSize(previewWidth: Int, previewHeight: Int)
setPreviousTexId
Link copied to clipboard
open fun setPreviousTexId(texId: Int)
setRotation
Link copied to clipboard
open fun setRotation(angle: Int)
setScale
Link copied to clipboard
open fun setScale(scaleX: Float, scaleY: Float)
setText
Link copied to clipboard
open fun setText(text: String, textSize: Float, textColor: Int)
open fun setText(text: String, textSize: Float, textColor: Int, typeface: Typeface)
open fun setText(text: String, textSize: Float, textColor: Int, backgroundColor: Int)
open fun setText(text: String, textSize: Float, textColor: Int, backgroundColor: Int, typeface: Typeface)
updateColor
Link copied to clipboard
open fun updateColor(textColor: Int)
updateTextSize
Link copied to clipboard
open fun updateTextSize(textSize: Float)
updateTypeface
Link copied to clipboard
open fun updateTypeface(typeface: Typeface)