Enum LumaWeights
- Namespace
- Egami.Operations
- Assembly
- Egami.dll
The luma weights a grayscale conversion uses.
public enum LumaWeights
Fields
Rec601 = 1Rec. 601 (older video) weights: 0.299 red, 0.587 green, 0.114 blue.
Rec709 = 0Rec. 709 (sRGB) weights: 0.2126 red, 0.7152 green, 0.0722 blue. The default.
Examples
photo.Apply(ops => ops
.Brightness(1.05f) // 1 changes nothing
.Contrast(1.1f)
.Saturation(1.2f)
.HueRotate(10), Ct); // these four run as one pass
using Raster bw = photo.Derive(ops => ops.Grayscale(LumaWeights.Rec709), Ct);
using Raster old = photo.Derive(ops => ops.Sepia(0.8f).Opacity(0.9f), Ct);