public class

NativeRoundingFilter

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.nativecode.NativeRoundingFilter

Class Overview

A fast native rounding filter.

Summary

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

Public Constructors

public NativeRoundingFilter ()

Public Methods

public static void addRoundedCorners (Bitmap bitmap, int radiusTopLeft, int radiusTopRight, int radiusBottomRight, int radiusBottomLeft)

public static void toCircle (Bitmap bitmap, boolean antiAliased)

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.

Parameters
bitmap the bitmap to modify

public static void toCircle (Bitmap bitmap)

public static void toCircleFast (Bitmap bitmap)

public static void toCircleFast (Bitmap bitmap, boolean antiAliased)

public static void toCircleWithBorder (Bitmap bitmap, int colorARGB, int borderWidthPx, boolean antiAliased)