• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2021 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "constants/transparency.h"
6 
7 namespace pdfium::transparency {
8 
9 // PDF 1.7 spec, table 7.2.
10 // Standard separable blend modes.
11 const char kNormal[] = "Normal";
12 const char kMultiply[] = "Multiply";
13 const char kScreen[] = "Screen";
14 const char kOverlay[] = "Overlay";
15 const char kDarken[] = "Darken";
16 const char kLighten[] = "Lighten";
17 const char kColorDodge[] = "ColorDodge";
18 const char kColorBurn[] = "ColorBurn";
19 const char kHardLight[] = "HardLight";
20 const char kSoftLight[] = "SoftLight";
21 const char kDifference[] = "Difference";
22 const char kExclusion[] = "Exclusion";
23 
24 // PDF 1.7 spec, table 7.3.
25 // Standard nonseparable blend modes.
26 const char kHue[] = "Hue";
27 const char kSaturation[] = "Saturation";
28 const char kColor[] = "Color";
29 const char kLuminosity[] = "Luminosity";
30 
31 // PDF 1.7 spec, table 7.10.
32 // Entries in a soft-mask dictionary.
33 const char kSoftMaskSubType[] = "S";
34 const char kAlpha[] = "Alpha";
35 const char kG[] = "G";
36 const char kBC[] = "BC";
37 const char kTR[] = "TR";
38 
39 // PDF 1.7 spec, table 7.13.
40 // Additional entries specific to a transparency group attributes dictionary.
41 const char kGroupSubType[] = "S";
42 const char kTransparency[] = "Transparency";
43 const char kCS[] = "CS";
44 const char kI[] = "I";
45 
46 }  // namespace pdfium::transparency
47