mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Soft mask implementation
This commit is contained in:
@ -507,6 +507,21 @@ PDFCMYK PDFBlendFunction::blend_Nonseparable(BlendMode mode, PDFCMYK Cb, PDFCMYK
|
||||
return Cs;
|
||||
}
|
||||
|
||||
PDFColorComponent PDFBlendFunction::getLuminosity(PDFGray gray)
|
||||
{
|
||||
return nonseparable_Lum(nonseparable_gray2rgb(gray));
|
||||
}
|
||||
|
||||
PDFColorComponent PDFBlendFunction::getLuminosity(PDFRGB rgb)
|
||||
{
|
||||
return nonseparable_Lum(rgb);
|
||||
}
|
||||
|
||||
PDFColorComponent PDFBlendFunction::getLuminosity(PDFCMYK cmyk)
|
||||
{
|
||||
return nonseparable_Lum(nonseparable_cmyk2rgb(cmyk));
|
||||
}
|
||||
|
||||
PDFRGB PDFBlendFunction::nonseparable_gray2rgb(PDFGray gray)
|
||||
{
|
||||
return nonseparable_SetLum(PDFRGB{ 0.0f, 0.0f, 0.0f }, gray);
|
||||
|
Reference in New Issue
Block a user