-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGrayScaleMode.cs
More file actions
38 lines (32 loc) · 943 Bytes
/
Copy pathGrayScaleMode.cs
File metadata and controls
38 lines (32 loc) · 943 Bytes
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
// (c) gfoidl, all rights reserved
namespace Cairo.Extensions.Colors;
/// <summary>
/// The mode for gray scale.
/// </summary>
public enum GrayScaleMode
{
/// <summary>
/// Averages the most prominent and least prominent color components.
/// </summary>
Lightness = 0,
/// <summary>
/// Average of R, G, and B color components.
/// </summary>
Average = 1,
/// <summary>
/// Average base on the human perception.
/// </summary>
/// <remarks>
/// The human eye is more sensitive to green than to other colors, so green will be
/// weighted most heavily.
/// </remarks>
Luminosity = 2,
/// <summary>
/// Uses the <see cref="CieLabColor.L"/>ightness value as gray value.
/// </summary>
CieLab = 3,
/// <summary>
/// Performs gamma expansion (sRGB -> linearized RGB) and the averages the components.
/// </summary>
GammaExpandedAverage = 4
}