public interface

BitmapTransformation

com.facebook.imagepipeline.transformation.BitmapTransformation

Class Overview

In-place bitmap transformation. This interface is similar to Postprocessors, however, it only allows in-place bitmap transformations that are applied immediately after the bitmap has been decoded.

NOTE: The original bitmap will not be copied and only the transformed bitmap will be cached in the bitmap memory cache. If the same image is requested without the transformation, it will be decoded again.

Summary

Public Methods
abstract boolean modifiesTransparency()
Specify whether the transformation modifies alpha support (transparent images).
abstract void transform(Bitmap bitmap)
Perform an in-place bitmap transformation.

Public Methods

public abstract boolean modifiesTransparency ()

Specify whether the transformation modifies alpha support (transparent images).

Returns
  • true if the alpha channel is needed

public abstract void transform (Bitmap bitmap)

Perform an in-place bitmap transformation.

Parameters
bitmap the bitmap to transform