com.bumptech.glide.load.resource.transcode
Class BitmapToGlideDrawableTranscoder

java.lang.Object
  extended by com.bumptech.glide.load.resource.transcode.BitmapToGlideDrawableTranscoder
All Implemented Interfaces:
ResourceTranscoder<Bitmap,GlideDrawable>

public class BitmapToGlideDrawableTranscoder
extends Object
implements ResourceTranscoder<Bitmap,GlideDrawable>

A wrapper for GlideBitmapDrawableTranscoder that transcodes to GlideDrawable rather than GlideBitmapDrawable. TODO: use ? extends GlideDrawable rather than GlideDrawable directly and remove this class.


Constructor Summary
BitmapToGlideDrawableTranscoder(Context context)
           
BitmapToGlideDrawableTranscoder(GlideBitmapDrawableTranscoder glideBitmapDrawableTranscoder)
           
 
Method Summary
 String getId()
           
 Resource<GlideDrawable> transcode(Resource<Bitmap> toTranscode)
          Transcodes the given resource to the new resource type and returns the wew resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitmapToGlideDrawableTranscoder

public BitmapToGlideDrawableTranscoder(Context context)

BitmapToGlideDrawableTranscoder

public BitmapToGlideDrawableTranscoder(GlideBitmapDrawableTranscoder glideBitmapDrawableTranscoder)
Method Detail

transcode

public Resource<GlideDrawable> transcode(Resource<Bitmap> toTranscode)
Description copied from interface: ResourceTranscoder
Transcodes the given resource to the new resource type and returns the wew resource.

Specified by:
transcode in interface ResourceTranscoder<Bitmap,GlideDrawable>
Parameters:
toTranscode - The resource to transcode.

getId

public String getId()
Specified by:
getId in interface ResourceTranscoder<Bitmap,GlideDrawable>