mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Spot color mapping
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user