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

System.Drawing.Printing.PrinterResolution

public class PrinterResolution
Represents the resolution supported by a printer.
public PrinterResolutionKind Kind { get; set; }

Gets or sets the printer resolution.

public int X { get; set; }

Gets the horizontal printer resolution, in dots per inch.

public int Y { get; set; }

Gets the vertical printer resolution, in dots per inch.

Initializes a new instance of the PrinterResolution class.