public interface Transform
| Modifier and Type | Method and Description |
|---|---|
void |
onBoundsChange(Rect bounds)
Called by
GifDrawable when its bounds changes by GifDrawable.onBoundsChange(Rect)
and when transform is associated using GifDrawable.setTransform(Transform). |
void |
onDraw(Canvas canvas,
Paint paint,
Bitmap buffer)
Called by
GifDrawable when its GifDrawable.draw(Canvas) is called. |
void onBoundsChange(Rect bounds)
GifDrawable when its bounds changes by GifDrawable.onBoundsChange(Rect)
and when transform is associated using GifDrawable.setTransform(Transform).
In this latter case the latest GifDrawable bounds (empty Rect if they were not set yet).bounds - new boundsvoid onDraw(Canvas canvas, Paint paint, Bitmap buffer)
GifDrawable when its GifDrawable.draw(Canvas) is called.canvas - The canvas supplied by the system to draw on.paint - The paint to use for custom drawing.buffer - The current Bitmap for the GIF.