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