Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HueProcessor{TPixel}"/> class.
 /// </summary>
 /// <param name="degrees">The angle of rotation in degrees</param>
 public HueProcessor(float degrees)
     : base(KnownFilterMatrices.CreateHueFilter(degrees))
 {
     this.Degrees = degrees;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GrayscaleBt601Processor"/> class.
 /// </summary>
 /// <param name="amount">The proportion of the conversion. Must be between 0 and 1.</param>
 public GrayscaleBt601Processor(float amount)
     : base(KnownFilterMatrices.CreateGrayscaleBt601Filter(amount))
 {
     this.Amount = amount;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BrightnessProcessor"/> class.
 /// </summary>
 /// <remarks>
 /// A value of <value>0</value> will create an image that is completely black. A value of <value>1</value> 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(KnownFilterMatrices.CreateBrightnessFilter(amount))
 {
     this.Amount = amount;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaturateProcessor"/> 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(KnownFilterMatrices.CreateSaturateFilter(amount))
 {
     this.Amount = amount;
 }
Ejemplo n.º 5
0
 public void Filter_rect_CorrectProcessor()
 {
     this.operations.Filter(KnownFilterMatrices.AchromatomalyFilter * KnownFilterMatrices.CreateHueFilter(90F), this.rect);
     FilterProcessor <Rgba32> p = this.Verify <FilterProcessor <Rgba32> >(this.rect);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SepiaProcessor"/> class.
 /// </summary>
 /// <param name="amount">The proportion of the conversion. Must be between 0 and 1.</param>
 public SepiaProcessor(float amount)
     : base(KnownFilterMatrices.CreateSepiaFilter(amount))
 {
     this.Amount = amount;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InvertProcessor"/> class.
 /// </summary>
 /// <param name="amount">The proportion of the conversion. Must be between 0 and 1.</param>
 public InvertProcessor(float amount)
     : base(KnownFilterMatrices.CreateInvertFilter(amount))
 {
     this.Amount = amount;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpacityProcessor"/> class.
 /// </summary>
 /// <param name="amount">The proportion of the conversion. Must be between 0 and 1.</param>
 public OpacityProcessor(float amount)
     : base(KnownFilterMatrices.CreateOpacityFilter(amount))
 {
     this.Amount = amount;
 }
Ejemplo n.º 9
0
 public void Filter_CorrectProcessor()
 {
     this.operations.Filter(KnownFilterMatrices.AchromatomalyFilter * KnownFilterMatrices.CreateHueFilter(90F));
     this.Verify <FilterProcessor>();
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContrastProcessor"/> class.
 /// </summary>
 /// <remarks>
 /// A value of <value>0</value> will create an image that is completely gray. A value of <value>1</value> leaves the input unchanged.
 /// Other values are linear multipliers on the effect. Values of an amount over 1 are allowed, providing results with more contrast.
 /// </remarks>
 /// <param name="amount">The proportion of the conversion. Must be greater than or equal to 0.</param>
 public ContrastProcessor(float amount)
     : base(KnownFilterMatrices.CreateContrastFilter(amount))
 {
     this.Amount = amount;
 }