summaryrefslogtreecommitdiff
path: root/constants/transparency.h
blob: 6532868178b86d84e00c20e8afca509e552dac86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright 2018 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONSTANTS_TRANSPARENCY_H_
#define CONSTANTS_TRANSPARENCY_H_

namespace pdfium {
namespace transparency {

// PDF 1.7 spec, table 7.2.
// Standard separable blend modes.

constexpr char kNormal[] = "Normal";
constexpr char kMultiply[] = "Multiply";
constexpr char kScreen[] = "Screen";
constexpr char kOverlay[] = "Overlay";
constexpr char kDarken[] = "Darken";
constexpr char kLighten[] = "Lighten";
constexpr char kColorDodge[] = "ColorDodge";
constexpr char kColorBurn[] = "ColorBurn";
constexpr char kHardLight[] = "HardLight";
constexpr char kSoftLight[] = "SoftLight";
constexpr char kDifference[] = "Difference";
constexpr char kExclusion[] = "Exclusion";

// PDF 1.7 spec, table 7.3.
// Standard nonseparable blend modes.

constexpr char kHue[] = "Hue";
constexpr char kSaturation[] = "Saturation";
constexpr char kColor[] = "Color";
constexpr char kLuminosity[] = "Luminosity";

// PDF 1.7 spec, table 7.10.
// Entries in a soft-mask dictionary.

constexpr char kSoftMaskSubType[] = "S";
constexpr char kAlpha[] = "Alpha";
constexpr char kG[] = "G";
constexpr char kBC[] = "BC";
constexpr char kTR[] = "TR";

// PDF 1.7 spec, table 7.13.
// Additional entries specific to a transparency group attributes dictionary.

constexpr char kGroupSubType[] = "S";
constexpr char kTransparency[] = "Transparency";
constexpr char kCS[] = "CS";
constexpr char kI[] = "I";

}  // namespace transparency
}  // namespace pdfium

#endif  // CONSTANTS_TRANSPARENCY_H_