<PackageReference Include="System.Drawing.Common" Version="10.0.4" />

System.Drawing.Imaging.Effects.LevelsEffect

public class LevelsEffect : Effect
Adjusts the light, mid-tone, or dark areas of an image.
namespace System.Drawing.Imaging.Effects { public class LevelsEffect : Effect { public int Highlight { get; } public int Midtone { get; } public int Shadow { get; } public LevelsEffect(int highlight, int midtone, int shadow); } }