public final class

InPlaceRoundFilter

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.filter.InPlaceRoundFilter

Class Overview

Modified midpoint circle algorithm. Clients that look for better performances should use the native implementation of this algorithm in NativeRoundingFilter.

Summary

Public Methods
static void roundBitmapInPlace(Bitmap bitmap)
An implementation for rounding a given bitmap to a circular shape.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void roundBitmapInPlace (Bitmap bitmap)

An implementation for rounding a given bitmap to a circular shape. The underlying implementation uses a modified midpoint circle algorithm but instead of drawing a circle, it clears all pixels starting from the circle all the way to the bitmap edges.

Parameters
bitmap The input Bitmap