private static Matrix4x4 CreateCombinedTestFilterMatrix() { Matrix4x4 brightness = MatrixFilters.CreateBrightnessFilter(0.9F); Matrix4x4 hue = MatrixFilters.CreateHueFilter(180F); Matrix4x4 saturation = MatrixFilters.CreateSaturateFilter(1.5F); Matrix4x4 m = brightness * hue * saturation; return(m); }
/// <summary> /// Initializes a new instance of the <see cref="SaturateProcessor{TPixel}"/> class. /// </summary> /// <remarks> /// A value of <value>0</value> is completely un-saturated. A value of <value>1</value> leaves the input unchanged. /// Other values are linear multipliers on the effect. Values of amount over 1 are allowed, providing super-saturated results /// </remarks> /// <param name="amount">The proportion of the conversion. Must be greater than or equal to 0.</param> public SaturateProcessor(float amount) : base(MatrixFilters.CreateSaturateFilter(amount)) { this.Amount = amount; }