| Constructor and Description |
|---|
CornerRadiusTransform(float cornerRadius) |
| Modifier and Type | Method and Description |
|---|---|
float |
getCornerRadius() |
void |
onBoundsChange(Rect bounds)
Called by
GifDrawable when its GifDrawable.onBoundsChange(Rect) is called. |
void |
onDraw(Canvas canvas,
Paint paint,
Bitmap buffer)
Called by
GifDrawable when its GifDrawable.draw(Canvas) is called. |
void |
setCornerRadius(float cornerRadius)
Sets the corner radius to be applied when drawing the bitmap.
|
public CornerRadiusTransform(float cornerRadius)
cornerRadius - corner radius, may be 0.public void setCornerRadius(float cornerRadius)
cornerRadius - corner radius or 0 to remove roundingpublic float getCornerRadius()
public void onBoundsChange(Rect bounds)
TransformGifDrawable when its GifDrawable.onBoundsChange(Rect) is called.onBoundsChange in interface Transformbounds - new boundspublic void onDraw(Canvas canvas, Paint paint, Bitmap buffer)
TransformGifDrawable when its GifDrawable.draw(Canvas) is called.