---
title: pixelSize
framework: Application Services
role: symbol
role_heading: Instance Property
platforms: [macOS 10.0+]
path: applicationservices/pixmap/1460391-pixelsize
---

# pixelSize

The number of bits used to represent a pixel. Indexed pixels can have sizes of 1, 2, 4, and 8 bits; direct pixel sizes are 16 and 32 bits.

## Declaration

```swift
var pixelSize: Int16
```
