blob: c25ae6f4f388ed31f45014c7ba480345163a7a5a [file] [log] [blame]
K. Moon832a6942022-10-31 20:11:31 +00001// Copyright 2021 The PDFium Authors
Lei Zhangef235032021-06-08 08:23:28 +00002// 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
Tom Sepez909a33c2023-08-10 19:17:01 +00007namespace pdfium::transparency {
Lei Zhangef235032021-06-08 08:23:28 +00008
9// PDF 1.7 spec, table 7.2.
10// Standard separable blend modes.
11const char kNormal[] = "Normal";
12const char kMultiply[] = "Multiply";
13const char kScreen[] = "Screen";
14const char kOverlay[] = "Overlay";
15const char kDarken[] = "Darken";
16const char kLighten[] = "Lighten";
17const char kColorDodge[] = "ColorDodge";
18const char kColorBurn[] = "ColorBurn";
19const char kHardLight[] = "HardLight";
20const char kSoftLight[] = "SoftLight";
21const char kDifference[] = "Difference";
22const char kExclusion[] = "Exclusion";
23
24// PDF 1.7 spec, table 7.3.
25// Standard nonseparable blend modes.
26const char kHue[] = "Hue";
27const char kSaturation[] = "Saturation";
28const char kColor[] = "Color";
29const char kLuminosity[] = "Luminosity";
30
31// PDF 1.7 spec, table 7.10.
32// Entries in a soft-mask dictionary.
33const char kSoftMaskSubType[] = "S";
34const char kAlpha[] = "Alpha";
35const char kG[] = "G";
36const char kBC[] = "BC";
37const char kTR[] = "TR";
38
39// PDF 1.7 spec, table 7.13.
40// Additional entries specific to a transparency group attributes dictionary.
41const char kGroupSubType[] = "S";
42const char kTransparency[] = "Transparency";
43const char kCS[] = "CS";
44const char kI[] = "I";
45
Tom Sepez909a33c2023-08-10 19:17:01 +000046} // namespace pdfium::transparency