com.bumptech.glide.load.resource.transcode
Interface ResourceTranscoder<Z,R>

Type Parameters:
Z - The type of the resource that will be transcoded from.
R - The type of the resource that will be transcoded to.
All Known Implementing Classes:
BitmapBytesTranscoder, BitmapToGlideDrawableTranscoder, GifBitmapWrapperDrawableTranscoder, GifDrawableBytesTranscoder, GlideBitmapDrawableTranscoder, UnitTranscoder

public interface ResourceTranscoder<Z,R>

Transcodes a resource of one type to a resource of another type.


Method Summary
 String getId()
           
 Resource<R> transcode(Resource<Z> toTranscode)
          Transcodes the given resource to the new resource type and returns the wew resource.
 

Method Detail

transcode

Resource<R> transcode(Resource<Z> toTranscode)
Transcodes the given resource to the new resource type and returns the wew resource.

Parameters:
toTranscode - The resource to transcode.

getId

String getId()