Table of Contents

Class BrightnessProcessor

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

Applies a brightness filter matrix using the given amount.

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

Constructors

BrightnessProcessor(float)

Initializes a new instance of the BrightnessProcessor class.

public BrightnessProcessor(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 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.

Properties

Amount

Gets the proportion of the conversion

public float Amount { get; }

Property Value

float