java.lang.Object | |
↳ | com.facebook.fresco.animation.bitmap.wrapper.AnimatedDrawableBackendFrameRenderer |
BitmapFrameRenderer
that wraps around an AnimatedDrawableBackend
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnimatedDrawableBackendFrameRenderer(BitmapFrameCache bitmapFrameCache, AnimatedDrawableBackend animatedDrawableBackend) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getIntrinsicHeight()
Return the intrinsic height of bitmap frames.
| ||||||||||
int |
getIntrinsicWidth()
Return the intrinsic width of bitmap frames.
| ||||||||||
boolean |
renderFrame(int frameNumber, Bitmap targetBitmap)
Render the frame for the given frame number to the target bitmap.
| ||||||||||
void |
setBounds(Rect bounds)
Set the parent drawable bounds to be used for frame rendering.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.facebook.fresco.animation.bitmap.BitmapFrameRenderer
|
Return the intrinsic height of bitmap frames. Return INTRINSIC_DIMENSION_UNSET
if no specific height is set.
Return the intrinsic width of bitmap frames. Return INTRINSIC_DIMENSION_UNSET
if no specific width is set.
Render the frame for the given frame number to the target bitmap.
frameNumber | the frame number to render |
---|---|
targetBitmap | the bitmap to render the frame in |
Set the parent drawable bounds to be used for frame rendering.
bounds | the bounds to use |
---|