Back to project page music-tag.
The source code is released under:
Apache License
If you think the Android project music-tag listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package binauld.pierre.musictag.decoder; //w w w . ja v a2 s .c om import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class ResourceBitmapDecoder implements BitmapDecoder { private Resources res; private int id; public ResourceBitmapDecoder(Resources res, int id) { this.res = res; this.id = id; } @Override public Bitmap decode() { return BitmapFactory.decodeResource(res, id); } @Override public Bitmap decode(int targetedWidth, int targetedHeight) { return decode(); } @Override public String getKey(int targetedWidth, int targetedHeight) { return String.valueOf(id); } }