toggle menu
RootEncoder
androidJvm
switch theme
search in API
encoder
/
com.pedro.encoder.input.gl
/
AndroidViewSprite
Android
View
Sprite
open
class
AndroidViewSprite
Created by pedro on 3/2/22.
Members
Constructors
Android
View
Sprite
Link copied to clipboard
constructor
(
)
Properties
rotation
Link copied to clipboard
open
var
rotation
:
Int
rotation
Axis
Link copied to clipboard
open
val
rotationAxis
:
PointF
scale
Link copied to clipboard
open
val
scale
:
PointF
Functions
calculate
Default
Scale
Link copied to clipboard
open
fun
calculateDefaultScale
(
previewX
:
Float
,
previewY
:
Float
)
Calculate default scale if none is indicated after load the filter.
get
Canvas
Position
Link copied to clipboard
open
fun
getCanvasPosition
(
previewX
:
Float
,
previewY
:
Float
)
:
PointF
Traduce position in percent to work with canvas.
get
Canvas
Scale
Link copied to clipboard
open
fun
getCanvasScale
(
previewX
:
Float
,
previewY
:
Float
)
:
PointF
Traduce scale in percent to work with canvas.
get
Translation
Link copied to clipboard
open
fun
getTranslation
(
)
:
PointF
reset
Link copied to clipboard
open
fun
reset
(
)
scale
Link copied to clipboard
open
fun
scale
(
deltaX
:
Float
,
deltaY
:
Float
)
set
View
Link copied to clipboard
open
fun
setView
(
view
:
View
)
translate
Link copied to clipboard
open
fun
translate
(
translation
:
TranslateTo
)
open
fun
translate
(
deltaX
:
Float
,
deltaY
:
Float
)