---
title: "init(widthInPixels:heightInPixels:pixelsPerInch:)"
framework: virtualization
role: symbol
role_heading: Initializer
path: "virtualization/vzmacgraphicsdisplayconfiguration/init(widthinpixels:heightinpixels:pixelsperinch:)"
---

# init(widthInPixels:heightInPixels:pixelsPerInch:)

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

## Declaration

```swift
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.

## See Also

### Creating the display configuration

- [init(for:sizeInPoints:)](virtualization/vzmacgraphicsdisplayconfiguration/init(for:sizeinpoints:).md)
