D | cfx_color.cpp | 20 CFX_Color ConvertCMYK2GRAY(float dC, float dM, float dY, float dK) { in ConvertCMYK2GRAY() argument 21 if (!InRange(dC) || !InRange(dM) || !InRange(dY) || !InRange(dK)) in ConvertCMYK2GRAY() 25 1.0f - std::min(1.0f, 0.3f * dC + 0.59f * dM + 0.11f * dY + dK)); in ConvertCMYK2GRAY() 46 CFX_Color ConvertCMYK2RGB(float dC, float dM, float dY, float dK) { in ConvertCMYK2RGB() argument 47 if (!InRange(dC) || !InRange(dM) || !InRange(dY) || !InRange(dK)) in ConvertCMYK2RGB() 49 return CFX_Color(CFX_Color::kRGB, 1.0f - std::min(1.0f, dC + dK), in ConvertCMYK2RGB() 50 1.0f - std::min(1.0f, dM + dK), in ConvertCMYK2RGB() 51 1.0f - std::min(1.0f, dY + dK)); in ConvertCMYK2RGB()
|