---
title: NSBitmapImageRep.Format
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nsbitmapimagerep/format
---

# NSBitmapImageRep.Format

Constants that represent bitmap component formats.

## Declaration

```swift
struct Format
```

## Overview

Overview You can combine these values and pass them to the  init(bitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:) method as the bitmap format. You can access them later in the  bitmapFormat property.

## Topics

### Constants

- [alphaFirst](appkit/nsbitmapimagerep/format/alphafirst.md)
- [alphaNonpremultiplied](appkit/nsbitmapimagerep/format/alphanonpremultiplied.md)
- [floatingPointSamples](appkit/nsbitmapimagerep/format/floatingpointsamples.md)
- [sixteenBitBigEndian](appkit/nsbitmapimagerep/format/sixteenbitbigendian.md)
- [sixteenBitLittleEndian](appkit/nsbitmapimagerep/format/sixteenbitlittleendian.md)
- [thirtyTwoBitBigEndian](appkit/nsbitmapimagerep/format/thirtytwobitbigendian.md)
- [thirtyTwoBitLittleEndian](appkit/nsbitmapimagerep/format/thirtytwobitlittleendian.md)

### Initializers

- [init(rawValue:)](appkit/nsbitmapimagerep/format/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Getting Information About Images

- [bitmapFormat](appkit/nsbitmapimagerep/bitmapformat.md)
- [bitsPerPixel](appkit/nsbitmapimagerep/bitsperpixel.md)
- [bytesPerPlane](appkit/nsbitmapimagerep/bytesperplane.md)
- [bytesPerRow](appkit/nsbitmapimagerep/bytesperrow.md)
- [isPlanar](appkit/nsbitmapimagerep/isplanar.md)
- [numberOfPlanes](appkit/nsbitmapimagerep/numberofplanes.md)
- [samplesPerPixel](appkit/nsbitmapimagerep/samplesperpixel.md)
