Skip to content
Snippets Groups Projects
Commit 9da3ac7c authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Set bitmap size in pixels

parent 752ea009
No related branches found
No related tags found
No related merge requests found
......@@ -377,10 +377,9 @@ public class AudioUtil {
}
}
public static Bitmap readCoverBitmap(String path, int dipWidth) {
public static Bitmap readCoverBitmap(String path, int width) {
Bitmap cover = null;
BitmapFactory.Options options = new BitmapFactory.Options();
int width = UiTools.convertDpToPx(dipWidth);
/* Get the resolution of the bitmap without allocating the memory */
options.inJustDecodeBounds = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment