Last active
July 17, 2016 09:08
-
-
Save sergey-shambir/f964a09f6258949a11285cb6423e0696 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case DeviceCMYK: | |
{ | |
double dCyan = m_uColor.cmyk[0]; | |
double dMagenta = m_uColor.cmyk[1]; | |
double dYellow = m_uColor.cmyk[2]; | |
double dBlack = m_uColor.cmyk[3]; | |
double dRed = dCyan * (1.0 - dBlack) + dBlack; | |
double dGreen = dMagenta * (1.0 - dBlack) + dBlack; | |
double dBlue = dYellow * (1.0 - dBlack) + dBlack; | |
return PdfColor( 1.0 - dRed, 1.0 - dGreen, 1.0 - dBlue ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment