xref: /aosp_15_r20/external/pdfium/constants/transparency.cpp (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
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 {
8 namespace transparency {
9 
10 // PDF 1.7 spec, table 7.2.
11 // Standard separable blend modes.
12 const char kNormal[] = "Normal";
13 const char kMultiply[] = "Multiply";
14 const char kScreen[] = "Screen";
15 const char kOverlay[] = "Overlay";
16 const char kDarken[] = "Darken";
17 const char kLighten[] = "Lighten";
18 const char kColorDodge[] = "ColorDodge";
19 const char kColorBurn[] = "ColorBurn";
20 const char kHardLight[] = "HardLight";
21 const char kSoftLight[] = "SoftLight";
22 const char kDifference[] = "Difference";
23 const char kExclusion[] = "Exclusion";
24 
25 // PDF 1.7 spec, table 7.3.
26 // Standard nonseparable blend modes.
27 const char kHue[] = "Hue";
28 const char kSaturation[] = "Saturation";
29 const char kColor[] = "Color";
30 const char kLuminosity[] = "Luminosity";
31 
32 // PDF 1.7 spec, table 7.10.
33 // Entries in a soft-mask dictionary.
34 const char kSoftMaskSubType[] = "S";
35 const char kAlpha[] = "Alpha";
36 const char kG[] = "G";
37 const char kBC[] = "BC";
38 const char kTR[] = "TR";
39 
40 // PDF 1.7 spec, table 7.13.
41 // Additional entries specific to a transparency group attributes dictionary.
42 const char kGroupSubType[] = "S";
43 const char kTransparency[] = "Transparency";
44 const char kCS[] = "CS";
45 const char kI[] = "I";
46 
47 }  // namespace transparency
48 }  // namespace pdfium
49