# ViewSurfaceFilterRender

@RequiresApi(api = 20)
class ViewSurfaceFilterRender : BaseObjectFilterRender

Created by pedro on 18/07/18.

## Constructors

ViewSurfaceFilterRender
Link copied to clipboard
constructor()

## Properties

originalScale
Link copied to clipboard
open val originalScale: PointF?
position
Link copied to clipboard
open val position: PointF?
previewHeight
Link copied to clipboard
open val previewHeight: Int
previewWidth
Link copied to clipboard
open val previewWidth: Int
previousTexId
Link copied to clipboard
open var previousTexId: Int
renderHandler
Link copied to clipboard
open var renderHandler: RenderHandler?
renderMode
Link copied to clipboard
open var renderMode: RenderMode?
rotation
Link copied to clipboard
open var rotation: Int
scale
Link copied to clipboard
open val scale: PointF?
texId
Link copied to clipboard
open val texId: Int
width
Link copied to clipboard
protected open var width: Int

## Functions

draw
Link copied to clipboard
open fun draw()
getSurfaceTexture
Link copied to clipboard
fun getSurfaceTexture(): SurfaceTexture?

This texture must be renderer using an api called on main thread to avoid possible errors

initFBOLink
Link copied to clipboard
open fun initFBOLink()
initGl
Link copied to clipboard
open fun initGl(width: Int, height: Int, context: Context?, previewWidth: Int, previewHeight: Int)
release
Link copied to clipboard
open override 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)
setScale
Link copied to clipboard
open fun setScale(scaleX: Float, scaleY: Float)
setView
Link copied to clipboard
fun setView(view: View?)
fun setView(@LayoutRes layoutId: Int)