Native support for Blur implementation in Android #15745
Description
Description
The current Android framework lacks native support for implementing blur effects, leading to developers relying on deprecated methods or third-party libraries to achieve blurring in their applications.
Public API Changes
Method: ApplyBlur(Bitmap source, int radius)
Description: Applies a blur effect to the provided Bitmap with the specified radius.
Parameters:
source: The input Bitmap to apply the blur effect on.
radius: The blur radius to determine the intensity of the blur effect.
Return Type: Bitmap: The resulting blurred Bitmap.
Intended Use-Case
Apply a blur effect to an image in an Android app by using the proposed blur API. Enhance the visual appeal of the image and create a more engaging user experience. Simply retrieve the image, call the ApplyBlur() method with a desired blur radius, and display the updated image with the applied blur effect. Easily implement professional-looking image blurring in your app with minimal code.
Activity