DrawableTransformation
Applies a BitmapTransformation to Drawables by first attempting to convert the Drawable to a Bitmap and then running the Transformation on the converted Bitmap.
This class is relatively efficient for BitmapDrawable where the Bitmap is readily accessible. For non-Bitmap based Drawables, this class must first try to draw the Drawable to a Bitmap using android.graphics.Canvas, which is less efficient. Drawables that implement android.graphics.drawable.Animatable will fail with an exception. Drawables that return <= 0
for getIntrinsicHeight and/or getIntrinsicWidth will fail with an exception if the requested size is SIZE_ORIGINAL. Drawables without intrinsic dimensions are drawn using the dimensions provided in transform. As a result, they may be transformed incorrectly or in unexpected ways.