| Constructor and Description |
|---|
CornerRadiusTransform(float cornerRadius) |
| Modifier and Type | Method and Description |
|---|---|
float |
getCornerRadius() |
void |
onBoundsChange(android.graphics.Rect bounds)
Called by
GifDrawable when its GifDrawable.onBoundsChange(Rect) is called. |
void |
onDraw(android.graphics.Canvas canvas,
android.graphics.Paint paint,
android.graphics.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(android.graphics.Rect bounds)
TransformGifDrawable when its GifDrawable.onBoundsChange(Rect) is called.onBoundsChange in interface Transformbounds - new boundspublic void onDraw(android.graphics.Canvas canvas,
android.graphics.Paint paint,
android.graphics.Bitmap buffer)
TransformGifDrawable when its GifDrawable.draw(Canvas) is called.