java.lang.Object | |
↳ | com.facebook.drawee.drawable.ScalingUtils |
Performs scale type calculations.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | ScalingUtils.AbstractScaleType | A convenience base class that has some common logic. | |||||||||
class | ScalingUtils.InterpolatingScaleType | Scale type that interpolates transform of the two underlying scale types. | |||||||||
interface | ScalingUtils.ScaleType | Options for scaling the child bounds to the parent bounds. | |||||||||
interface | ScalingUtils.StatefulScaleType | Scaletypes that have some internal state and are not static. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ScalingUtils() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static Matrix |
getTransform(Matrix transform, Rect parentBounds, int childWidth, int childHeight, float focusX, float focusY, ScalingUtils.ScaleType scaleType)
This method is deprecated.
use
ScaleType.getTransform
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This method is deprecated.
use ScaleType.getTransform
Gets transformation based on the scale type.
transform | out matrix to store result |
---|---|
parentBounds | parent bounds |
childWidth | child width |
childHeight | child height |
focusX | focus point x coordinate, relative [0...1] |
focusY | focus point y coordinate, relative [0...1] |
scaleType | scale type to be used |