com.bumptech.glide.load.resource.transcode
Class BitmapToGlideDrawableTranscoder
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BitmapToGlideDrawableTranscoder
public BitmapToGlideDrawableTranscoder(Context context)
BitmapToGlideDrawableTranscoder
public BitmapToGlideDrawableTranscoder(GlideBitmapDrawableTranscoder glideBitmapDrawableTranscoder)
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>