CropFilterRender

Created by pedro on 6/3/24.

Constructors

Link copied to clipboard
constructor()

Properties

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
open val texId: Int
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 setCropArea(offsetX: Float, offsetY: Float, width: Float, height: Float)

Set crop area in percentage. Starting from top left corner. Moved in right bottom

Link copied to clipboard
open fun setPreviewSize(previewWidth: Int, previewHeight: Int)