com.bumptech.glide.load.resource.transcode.ResourceTranscoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glide Show documentation
Show all versions of glide Show documentation
A fast and efficient image loading library for Android focused on smooth scrolling.
package com.bumptech.glide.load.resource.transcode;
import com.bumptech.glide.load.engine.Resource;
/**
* Transcodes a resource of one type to a resource of another type.
*
* @param The type of the resource that will be transcoded from.
* @param The type of the resource that will be transcoded to.
*/
public interface ResourceTranscoder {
/**
* Transcodes the given resource to the new resource type and returns the new resource.
*
* @param toTranscode The resource to transcode.
*/
Resource transcode(Resource toTranscode);
}