---
title: "representationOfImageReps(in:using:properties:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsbitmapimagerep/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.

## Declaration

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

## Parameters

- `imageReps`: An array of doc://com.apple.appkit/documentation/AppKit/NSBitmapImageRep objects.
- `storageType`: An doc://com.apple.appkit/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 doc://com.apple.appkit/documentation/AppKit/NSBitmapImageRep/PropertyKey.

## Return Value

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 object.

## See Also

### Producing Other Representations of Images

- [tiffRepresentationOfImageReps(in:)](appkit/nsbitmapimagerep/tiffrepresentationofimagereps(in:).md)
- [tiffRepresentationOfImageReps(in:using:factor:)](appkit/nsbitmapimagerep/tiffrepresentationofimagereps(in:using:factor:).md)
- [tiffRepresentation](appkit/nsbitmapimagerep/tiffrepresentation.md)
- [tiffRepresentation(using:factor:)](appkit/nsbitmapimagerep/tiffrepresentation(using:factor:).md)
- [representation(using:properties:)](appkit/nsbitmapimagerep/representation(using:properties:).md)
- [NSDrawBitmap(_:_:_:_:_:_:_:_:_:_:_:)](appkit/nsdrawbitmap(_:_:_:_:_:_:_:_:_:_:_:).md)
