<!--
{
  "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.

[`-  initWithData:`](/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.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

### Inherits From

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

---

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)