# AndroidViewSprite

open class AndroidViewSprite

Created by pedro on 3/2/22.

## Constructors

AndroidViewSprite
Link copied to clipboard
constructor()

## Properties

rotation
Link copied to clipboard
open var rotation: Int
rotationAxis
Link copied to clipboard
open val rotationAxis: PointF
scale
Link copied to clipboard
open val scale: PointF

## Functions

calculateDefaultScale
Link copied to clipboard
open fun calculateDefaultScale(previewX: Float, previewY: Float)
Calculate default scale if none is indicated after load the filter.
getCanvasPosition
Link copied to clipboard
open fun getCanvasPosition(previewX: Float, previewY: Float): PointF
Traduce position in percent to work with canvas.
getCanvasScale
Link copied to clipboard
open fun getCanvasScale(previewX: Float, previewY: Float): PointF
Traduce scale in percent to work with canvas.
getTranslation
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)
setView
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)