toggle menu
RootEncoder
androidJvm
switch theme
search in API
encoder
/
com.pedro.encoder.input.gl.render.filters
/
DuotoneFilterRender
Duotone
Filter
Render
@
RequiresApi
(
api
=
Build.VERSION_CODES.JELLY_BEAN_MR2
)
open
class
DuotoneFilterRender
:
BaseFilterRender
Created by pedro on 1/02/18.
Members
Constructors
Duotone
Filter
Render
Link copied to clipboard
constructor
(
)
Properties
blue
Link copied to clipboard
open
val
blue
:
Float
blue2
Link copied to clipboard
open
val
blue2
:
Float
FLOAT_SIZE_BYTES
Link copied to clipboard
val
FLOAT_SIZE_BYTES
:
Int
=
4
green
Link copied to clipboard
open
val
green
:
Float
green2
Link copied to clipboard
open
val
green2
:
Float
preview
Height
Link copied to clipboard
open
val
previewHeight
:
Int
preview
Width
Link copied to clipboard
open
val
previewWidth
:
Int
red
Link copied to clipboard
open
val
red
:
Float
red2
Link copied to clipboard
open
val
red2
:
Float
render
Handler
Link copied to clipboard
open
var
renderHandler
:
RenderHandler
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
Functions
draw
Link copied to clipboard
open
fun
draw
(
)
get
Previous
Tex
Id
Link copied to clipboard
open
fun
getPreviousTexId
(
)
:
Int
get
Tex
Id
Link copied to clipboard
open
fun
getTexId
(
)
:
Int
init
FBOLink
Link copied to clipboard
open
fun
initFBOLink
(
)
init
Gl
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
(
)
set
Color
Link copied to clipboard
open
fun
setColor
(
colorResource
:
Int
,
colorResource2
:
Int
)
open
fun
setColor
(
resources
:
Resources
,
colorResource
:
Int
,
colorResource2
:
Int
)
Get string color from color file resource and strip alpha values (alpha values is always auto completed)
set
Preview
Size
Link copied to clipboard
open
fun
setPreviewSize
(
previewWidth
:
Int
,
previewHeight
:
Int
)
set
Previous
Tex
Id
Link copied to clipboard
open
fun
setPreviousTexId
(
texId
:
Int
)
set
RGBColor
Link copied to clipboard
open
fun
setRGBColor
(
rgbHexColor
:
String
,
rgbHexColor2
:
String
)
open
fun
setRGBColor
(
r
:
Int
,
g
:
Int
,
b
:
Int
,
r2
:
Int
,
g2
:
Int
,
b2
:
Int
)
Values range 0 to 255