blob: 6532868178b86d84e00c20e8afca509e552dac86 [file] [log] [blame]
Lei Zhangfdd0ef62018-05-08 19:06:38 +00001// 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
8namespace pdfium {
9namespace transparency {
10
11// PDF 1.7 spec, table 7.2.
12// Standard separable blend modes.
13
14constexpr char kNormal[] = "Normal";
15constexpr char kMultiply[] = "Multiply";
16constexpr char kScreen[] = "Screen";
17constexpr char kOverlay[] = "Overlay";
18constexpr char kDarken[] = "Darken";
19constexpr char kLighten[] = "Lighten";
20constexpr char kColorDodge[] = "ColorDodge";
21constexpr char kColorBurn[] = "ColorBurn";
22constexpr char kHardLight[] = "HardLight";
23constexpr char kSoftLight[] = "SoftLight";
24constexpr char kDifference[] = "Difference";
25constexpr char kExclusion[] = "Exclusion";
26
27// PDF 1.7 spec, table 7.3.
28// Standard nonseparable blend modes.
29
30constexpr char kHue[] = "Hue";
31constexpr char kSaturation[] = "Saturation";
32constexpr char kColor[] = "Color";
33constexpr char kLuminosity[] = "Luminosity";
34
Lei Zhanga44b2882018-05-09 19:31:22 +000035// PDF 1.7 spec, table 7.10.
36// Entries in a soft-mask dictionary.
37
38constexpr char kSoftMaskSubType[] = "S";
39constexpr char kAlpha[] = "Alpha";
40constexpr char kG[] = "G";
41constexpr char kBC[] = "BC";
42constexpr char kTR[] = "TR";
43
44// PDF 1.7 spec, table 7.13.
45// Additional entries specific to a transparency group attributes dictionary.
46
47constexpr char kGroupSubType[] = "S";
48constexpr char kTransparency[] = "Transparency";
Lei Zhang1c0de382018-05-30 18:35:31 +000049constexpr char kCS[] = "CS";
Lei Zhanga44b2882018-05-09 19:31:22 +000050constexpr char kI[] = "I";
51
Lei Zhangfdd0ef62018-05-08 19:06:38 +000052} // namespace transparency
53} // namespace pdfium
54
55#endif // CONSTANTS_TRANSPARENCY_H_