Here you can find the source of multiplyColor(int src, int dst)
public static int multiplyColor(int src, int dst)
//package com.java2s; //License from project: Open Source License public class Main { public static int multiplyColor(int src, int dst) { int out = 0; for (int i = 0; i < 32; i += 8) { out |= ((((src >> i) & 0xFF) * ((dst >> i) & 0xFF) / 0xFF) & 0xFF) << i; }//from ww w. ja v a 2 s .c om return out; } }