Spot color mapping

This commit is contained in:
Jakub Melka
2021-01-28 19:40:13 +01:00
parent 8c210176b8
commit 1a13aa4e22
4 changed files with 148 additions and 1 deletions

View File

@ -99,6 +99,7 @@ bool PDFBlendModeInfo::isSeparable(BlendMode mode)
case BlendMode::Compatible:
case BlendMode::Overprint_SelectBackdrop:
case BlendMode::Overprint_SelectNonZeroSourceOrBackdrop:
case BlendMode::Overprint_SelectNonOneSourceOrBackdrop:
return true;
case BlendMode::Hue:
@ -354,6 +355,16 @@ PDFColorComponent PDFBlendFunction::blend(BlendMode mode, PDFColorComponent Cb,
return Cs;
}
case BlendMode::Overprint_SelectNonOneSourceOrBackdrop:
{
if (qFuzzyIsNull(1.0f - Cs))
{
return Cb;
}
return Cs;
}
default:
{
Q_ASSERT(false);