| com.facebook.fresco.animation.bitmap.BitmapFrameRenderer |
Known Indirect Subclasses
|
Bitmap frame renderer used by BitmapAnimationBackend to render animated images (e.g. GIFs
or animated WebPs).
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract int |
getIntrinsicHeight()
Return the intrinsic height of bitmap frames.
| ||||||||||
| abstract int |
getIntrinsicWidth()
Return the intrinsic width of bitmap frames.
| ||||||||||
| abstract boolean |
renderFrame(int frameNumber, Bitmap targetBitmap)
Render the frame for the given frame number to the target bitmap.
| ||||||||||
| abstract void |
setBounds(Rect bounds)
Set the parent drawable bounds to be used for frame rendering.
| ||||||||||
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 |
|---|