How can i set image (semi-trasparent) over other image ?
I need to create new bitmap and then save it.
Thanks all.
    Bitmap bitmap1 = null; // define it
    Bitmap bitmap2 = null; // define it
    Bitmap resultBitmap = Bitmap.createBitmap(bitmap1.getWidth(), bitmap1.getHeight(), Bitmap.Config.ARGB_8888);
    Canvas c = new Canvas(resultBitmap);
    c.drawBitmap(bitmap1, 0, 0, null);
    Paint p = new Paint();
    p.setAlpha(127);
    c.drawBitmap(bitmap2, 0, 0, p);
    // Your final bitmap is resultBitmap
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With