<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSImageRep/pixelsHigh",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSImageRep(py)pixelsHigh"
  },
  "title" : "pixelsHigh"
}
-->

# pixelsHigh

The height of the image, measured in pixels.

```
var pixelsHigh: Int { get set }
```

## Discussion

The value of this property is the height of the image, measured in the units of the device coordinate space. This value is usually derived from the image data itself.

Subclasses can use this property when loading image data to notify the parent class of the image height. Setting this property does not change the actual number of pixels in the image.

## See Also

[`NSImageRepMatchesDevice`](/documentation/AppKit/NSImageRepMatchesDevice)

A constant indicating that the value of certain attributes, such as the number of colors or bits per sample, will change to match the display device.

[`size`](/documentation/AppKit/NSImageRep/size)

The size of the image representation, measured in points in the user coordinate space.



---

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)