<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZMacGraphicsDisplayConfiguration/init(widthInPixels:heightInPixels:pixelsPerInch:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZMacGraphicsDisplayConfiguration(im)initWithWidthInPixels:heightInPixels:pixelsPerInch:"
  },
  "title" : "init(widthInPixels:heightInPixels:pixelsPerInch:)"
}
-->

# init(widthInPixels:heightInPixels:pixelsPerInch:)

Create a display configuration with the specified pixel dimensions and pixel density.

```
init(widthInPixels: Int, heightInPixels: Int, pixelsPerInch: Int)
```

## Parameters

`widthInPixels`

The width of the display, in pixels.

`heightInPixels`

The height of the display, in pixels.

`pixelsPerInch`

The pixel density as a number of pixels per inch.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)