Example #1
0
        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);
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BrightnessProcessor{TPixel}"/> class.
 /// </summary>
 /// <remarks>
 /// A value of 0 will create an image that is completely black. A value of 1 leaves the input unchanged.
 /// Other values are linear multipliers on the effect. Values of an amount over 1 are allowed, providing brighter results.
 /// </remarks>
 /// <param name="amount">The proportion of the conversion. Must be greater than or equal to 0.</param>
 public BrightnessProcessor(float amount)
     : base(MatrixFilters.CreateBrightnessFilter(amount))
 {
     this.Amount = amount;
 }