<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBitmapImageRep/representationOfImageReps(in:using:properties:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBitmapImageRep(cm)representationOfImageRepsInArray:usingType:properties:"
  },
  "title" : "representationOfImageReps(in:using:properties:)"
}
-->

# representationOfImageReps(in:using:properties:)

Formats the specified bitmap images using the specified storage type and properties and returns them in a data object.

```
class func representationOfImageReps(in imageReps: [NSImageRep], using storageType: NSBitmapImageRep.FileType, properties: [NSBitmapImageRep.PropertyKey : Any]) -> Data?
```

## Parameters

`imageReps`

An array of [`NSBitmapImageRep`](/documentation/AppKit/NSBitmapImageRep) objects.

`storageType`

An [`NSBitmapImageRep.FileType`](/documentation/AppKit/NSBitmapImageRep/FileType) constant specifying a file type for bitmap images.

`properties`

A dictionary that contains key-value pairs specifying image properties. These string constants used as keys and the valid values are described in [`NSBitmapImageRep.PropertyKey`](/documentation/AppKit/NSBitmapImageRep/PropertyKey).

## Return Value

A data object containing the bitmap image data in the specified format. You can write this data to a file or use it to create a new [`NSBitmapImageRep`](/documentation/AppKit/NSBitmapImageRep) object.

## Discussion

---

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)