public class

MultiImageTranscoderFactory

extends Object
implements ImageTranscoderFactory
java.lang.Object
   ↳ com.facebook.imagepipeline.transcoder.MultiImageTranscoderFactory

Class Overview

Class responsible of returning the correct ImageTranscoder given the ImageFormat. The custom ImageTranscoder, if any, will always be used first. If the image format is not supported, the first fallback is NativeJpegTranscoder, otherwise SimpleImageTranscoder is used.

Summary

Public Constructors
MultiImageTranscoderFactory(int maxBitmapSize, boolean useDownSamplingRatio, ImageTranscoderFactory primaryImageTranscoderFactory, Integer imageTranscoderType, boolean ensureTranscoderLibraryLoaded)
Public Methods
ImageTranscoder createImageTranscoder(ImageFormat imageFormat, boolean isResizingEnabled)
Creates an ImageTranscoder that enables or disables resizing depending on isResizingEnabled.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.transcoder.ImageTranscoderFactory

Public Constructors

public MultiImageTranscoderFactory (int maxBitmapSize, boolean useDownSamplingRatio, ImageTranscoderFactory primaryImageTranscoderFactory, Integer imageTranscoderType, boolean ensureTranscoderLibraryLoaded)

Public Methods

public ImageTranscoder createImageTranscoder (ImageFormat imageFormat, boolean isResizingEnabled)

Creates an ImageTranscoder that enables or disables resizing depending on isResizingEnabled. It can return null if the ImageFormat is not supported by this ImageTranscoder.

Note that if JPEG images are not supported, we will fallback to our native ImageTranscoder implementation.

Parameters
imageFormat the ImageFormat of the input images.
isResizingEnabled true if resizing is allowed.
Returns