Table of Contents

Class ContrastProcessor

Namespace
SixLabors.ImageSharp.Processing.Processors.Filters
Assembly
SixLabors.ImageSharp.dll

Applies a contrast filter matrix using the given amount.

public sealed class ContrastProcessor : FilterProcessor, IImageProcessor
Inheritance
ContrastProcessor
Implements
Inherited Members

Constructors

ContrastProcessor(float)

Initializes a new instance of the ContrastProcessor class.

public ContrastProcessor(float amount)

Parameters

amount float

The proportion of the conversion. Must be greater than or equal to 0.

Remarks

A value of 0 will create an image that is completely gray. 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 results with more contrast.

Properties

Amount

Gets the proportion of the conversion.

public float Amount { get; }

Property Value

float