Package 

Interface Transform


  • 
    public interface Transform
    
                        

    Interface to support clients performing custom transformations before the current GIF Bitmap is drawn.

    • Method Summary

      Modifier and Type Method Description
      abstract void onBoundsChange(Rect bounds) Called by GifDrawable when its bounds changes by onBoundsChange and when transform is associated using setTransform.
      abstract void onDraw(Canvas canvas, Paint paint, Bitmap buffer) Called by GifDrawable when its draw is called.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onBoundsChange

         abstract void onBoundsChange(Rect bounds)

        Called by GifDrawable when its bounds changes by onBoundsChange and when transform is associated using setTransform.In this latter case the latest GifDrawable bounds (empty Rect if they were not set yet).

        Parameters:
        bounds - new bounds
      • onDraw

         abstract void onDraw(Canvas canvas, Paint paint, Bitmap buffer)

        Called by GifDrawable when its draw is called.

        Parameters:
        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.