java.lang.Object | |
↳ | com.facebook.imagepipeline.nativecode.NativeRoundingFilter |
A fast native rounding filter.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NativeRoundingFilter() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void | addRoundedCorners(Bitmap bitmap, int radiusTopLeft, int radiusTopRight, int radiusBottomRight, int radiusBottomLeft) | ||||||||||
static void |
toCircle(Bitmap bitmap, boolean antiAliased)
This is a fast, native implementation for rounding a bitmap.
| ||||||||||
static void | toCircle(Bitmap bitmap) | ||||||||||
static void | toCircleFast(Bitmap bitmap) | ||||||||||
static void | toCircleFast(Bitmap bitmap, boolean antiAliased) | ||||||||||
static void | toCircleWithBorder(Bitmap bitmap, int colorARGB, int borderWidthPx, boolean antiAliased) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This is a fast, native implementation for rounding a bitmap. It takes the given bitmap and modifies it to be circular.
This implementation does not change the underlying bitmap dimensions, it only sets pixels that are outside of the circle to a transparent color.
bitmap | the bitmap to modify |
---|