…
    // Divide Red, Green and Blue values with Clear value
    RedRatio   = ((float)RedData   / (float)ClearData);
    GreenRatio = ((float)GreenData / (float)ClearData);
    BlueRatio  = ((float)BlueData  / (float)ClearData);
…