<PackageReference Include="System.Drawing.Common" Version="9.0.0-preview.7.24405.4" />

ImageLockMode

public enum ImageLockMode
Specifies flags that are passed to the flags parameter of the LockBits method. The LockBits method locks a portion of an image so that you can read or write the pixel data.
namespace System.Drawing.Imaging { public enum ImageLockMode { ReadOnly = 1, WriteOnly, ReadWrite, UserInputBuffer } }