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

# init(for:sizeInPoints:)

Create a display configuration suitable for showing on the specified screen.

```
convenience init(for screen: NSScreen, sizeInPoints: NSSize)
```

## Parameters

`screen`

The screen on which you intend to present the [`VZVirtualMachineView`](/documentation/Virtualization/VZVirtualMachineView) for the display.

`sizeInPoints`

The intended logical size of the display.

## Discussion

The framework initializes the pixel dimensions and pixel density based on the specified screen and size. An instance of macOS running in the VM may not necessarily provide a display mode with a backing scale factor matching the specified screen.

---

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)