Java Color Multiply multiplyColor(int src, int dst)

Here you can find the source of multiplyColor(int src, int dst)

Description

multiply Color

License

Open Source License

Declaration

public static int multiplyColor(int src, int dst) 

Method Source Code

//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;
    }
}

Related

  1. multiply(double color1, double color2)
  2. multiply(int colorA, int colorB)
  3. multiplyColor(int p_180188_0_, int p_180188_1_)
  4. multiplyColorComponents(int color, float brightnessFactor)