com.bumptech.glide.load.resource.transcode
Class GlideBitmapDrawableTranscoder
java.lang.Object
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
Bitmap
s into BitmapDrawable
s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlideBitmapDrawableTranscoder
public GlideBitmapDrawableTranscoder(Context context)
GlideBitmapDrawableTranscoder
public GlideBitmapDrawableTranscoder(Resources resources,
BitmapPool bitmapPool)
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>