This is for an Android application. Let\'s say that I have two colors with alpha
int color1 = 0x12345678 // aarrggbb int color2 = 0x87654321
I think what you want might be PorterDuff.Mode.Multiply
... used with PorterDuffColorFilter.
EDIT: Actually maybe you want mode DST_OVER for destination color "over" source color.