+ public static Bitmap addVideoOverlay(Bitmap thumbnail){
+ Bitmap bitmap2 = BitmapFactory.decodeResource(MainApp.getAppContext().getResources(),
+ R.drawable.view_play);
+
+ Bitmap resized = Bitmap.createScaledBitmap(bitmap2,
+ (int) (thumbnail.getWidth() * 0.6),
+ (int) (thumbnail.getHeight() * 0.6), true);
+
+ Bitmap resultBitmap = Bitmap.createBitmap(thumbnail.getWidth(),
+ thumbnail.getHeight(),
+ Bitmap.Config.ARGB_8888);
+
+ Canvas c = new Canvas(resultBitmap);
+
+ c.drawBitmap(thumbnail, 0, 0, null);
+
+ Paint p = new Paint();
+ p.setAlpha(230);
+
+ c.drawBitmap(resized, (thumbnail.getWidth() - resized.getWidth()) / 2,
+ (thumbnail.getHeight() - resized.getHeight()) / 2, p);
+
+ return resultBitmap;
+ }
+