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

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

public class GlideBitmapDrawableTranscoder
extends Object
implements ResourceTranscoder<Bitmap,GlideBitmapDrawable>

An ResourceTranscoder that converts Bitmaps into BitmapDrawables.


Constructor Summary
GlideBitmapDrawableTranscoder(Context context)
           
GlideBitmapDrawableTranscoder(Resources resources, BitmapPool bitmapPool)
           
 
Method Summary
 String getId()
           
 Resource<GlideBitmapDrawable> 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

GlideBitmapDrawableTranscoder

public GlideBitmapDrawableTranscoder(Context context)

GlideBitmapDrawableTranscoder

public GlideBitmapDrawableTranscoder(Resources resources,
                                     BitmapPool bitmapPool)
Method Detail

transcode

public Resource<GlideBitmapDrawable> 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,GlideBitmapDrawable>
Parameters:
toTranscode - The resource to transcode.

getId

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