<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.3.25173.2" />

LevelsEffect

public class LevelsEffect : Effect
Adjusts the light, mid-tone, or dark areas of an image.
public int Highlight { get; }

Gets the highlight threshold.

public int Midtone { get; }

Gets the midtone adjustment.

public int Shadow { get; }

Gets the shadow threshold.

public LevelsEffect(int highlight, int midtone, int shadow)

Creates a new LevelsEffect with the specified highlight, midtone, and shadow values.