<PackageReference Include="System.Drawing.Common" Version="11.0.0-preview.2.26159.112" />

System.Drawing.Imaging.Effects.Effect

public abstract class Effect : IDisposable
Base class for all effects.
public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by the Effect and optionally releases the managed resources.