Package 

Class CornerRadiusTransform

    • Constructor Detail

      • CornerRadiusTransform

        CornerRadiusTransform(float cornerRadius)
        Parameters:
        cornerRadius - corner radius, may be 0.
    • Method Detail

      • setCornerRadius

         void setCornerRadius(@FloatRange(from = 0) float cornerRadius)

        Sets the corner radius to be applied when drawing the bitmap.

        Parameters:
        cornerRadius - corner radius or 0 to remove rounding
      • onBoundsChange

         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

         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.