ViewFilterRender

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Draw in surface using hardware canvas. True by default.

Link copied to clipboard
Link copied to clipboard
open val previewHeight: Int
Link copied to clipboard
open val previewWidth: Int
Link copied to clipboard
open var previousTexId: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val texId: Int
Link copied to clipboard
var view: View?

The view to render. This filter never measures or layouts the view so you must do it before set it here, in other case nothing is rendered. Example using the encoder resolution to render the view in fullscreen:

Link copied to clipboard
protected open var width: Int

Functions

Link copied to clipboard
open fun draw()
Link copied to clipboard
open fun initFBOLink()
Link copied to clipboard
open fun initGl(width: Int, height: Int, context: Context?, previewWidth: Int, previewHeight: Int)
Link copied to clipboard
open override fun release()
Link copied to clipboard
fun setPosition(positionTo: TranslateTo)
fun setPosition(x: Float, y: Float)
Link copied to clipboard
open fun setPreviewSize(previewWidth: Int, previewHeight: Int)
Link copied to clipboard
fun setScale(scaleX: Float, scaleY: Float)