A
A
Andrey Golubkov2015-03-08 19:56:23
Android
Andrey Golubkov, 2015-03-08 19:56:23

How to make PorterDuffXfermode on camera image in SurfaceView?

I want to do like this:

Canvas canvas = new Canvas(drawingBitmap);
Paint paint = new Paint();
canvas.drawBitmap(sourceBitmap, 0, 0, paint);
paint.setXfermode(new PorterDuffXfermode (android.graphics.PorterDuff.Mode.SCREEN)); // способ смешивания
canvas.drawBitmap(destinationBitmap, 0, 0, paint);

The effect is the same as in the Retrika application, applying the effect to the camera.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question