<!--
{
  "availability" : [
    "macOS: 10.0.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSEPSImageRep",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSEPSImageRep"
  },
  "title" : "NSEPSImageRep"
}
-->

# NSEPSImageRep

An object that can render an image from encapsulated PostScript (EPS) code.

```
class NSEPSImageRep
```

## Topics

### Creating Representations of Images from EPS Data

[`imageRepWithData:`](/documentation/AppKit/NSEPSImageRep/imageRepWithData:)

Creates and returns a representation of an image initialized with the specified EPS data.

[`init(data:)`](/documentation/AppKit/NSEPSImageRep/init(data:))

Returns a representation of an image initialized with the specified EPS data.

### Getting Data

[`boundingBox`](/documentation/AppKit/NSEPSImageRep/boundingBox)

The rectangle that bounds the image representation.

[`epsRepresentation`](/documentation/AppKit/NSEPSImageRep/epsRepresentation)

The EPS representation of the image representation.

### Drawing Images

[`prepareGState()`](/documentation/AppKit/NSEPSImageRep/prepareGState())

Implemented by subclasses to configure the graphics state prior to drawing.



---

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)