public Bitmap PutoverChange(Bitmap all, Bitmap scaledBorder) { Paint paint = new Paint(); final int width = change.getWidth(); final int height = change.getHeight(); patt = Bitmap.createScaledBitmap(change, width, height, true); Bitmap mutableBitmap = patt.copy(Bitmap.Config.ARGB_8888, true); Canvas canvas = new Canvas(mutableBitmap); scaledBorder = Bitmap.createScaledBitmap(border, width, height, true); paint.setAlpha(100); canvas.drawBitmap(scaledBorder, 0, 0, paint); return mutableBitmap; }
here the transparency is 100. You can change it to 50 to make it translucent.
source share