Is there a way to *increase* the alpha values of pixels on a Bitmap with a Canvas?
To be more specific, to *decrease* the alpha I can do the following: Paint clearPaint = new Paint(); clearPaint.setARGB(200, 255, 255, 255); clearPaint.setXfermode(new PorterDuffXfermode (PorterDuff.Mode.MULTIPLY)); ... canvas.drawPaint(clearPaint); Effectively this only decreases the alpha value since it is multiplied by (float) (200.0/255.0), and the color values remain unchanged since they are multiplied by (float) (255.0/255.0), which is 1. I now want to *increase* the alpha value on all pixels by a set amount x. If it was OpenGL, I could draw a rectangle of color (x, 0, 0, 0), having set the blending results to be (src * GL_ONE + dst * GL_ONE) on all channels. Is it possible to do this with some Xfermode? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

