<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoSettings/init(rawPixelFormatType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhotoSettings(cm)photoSettingsWithRawPixelFormatType:"
  },
  "title" : "init(rawPixelFormatType:)"
}
-->

# init(rawPixelFormatType:)

Creates a photo settings object for RAW-format-only capture with the specified pixel format.

```
convenience init(rawPixelFormatType: OSType)
```

## Parameters

`rawPixelFormatType`

The Bayer RAW pixel format type to use for capture. This value must be one of the format identifiers listed in the [`availableRawPhotoPixelFormatTypes`](/documentation/AVFoundation/AVCapturePhotoOutput/availableRawPhotoPixelFormatTypes-5fatm) array of your photo capture output.

## Return Value

A new photo settings object.

## Discussion

Use this initializer for RAW-only capture. To capture an image in both RAW format and a processed format (such as JPEG), use the [`init(rawPixelFormatType:processedFormat:)`](/documentation/AVFoundation/AVCapturePhotoSettings/init(rawPixelFormatType:processedFormat:)) initializer instead.

Requesting RAW format capture adds requirements for other photo settings: for details, see the [`rawPhotoPixelFormatType`](/documentation/AVFoundation/AVCapturePhotoSettings/rawPhotoPixelFormatType) property. The capture output validates these requirements when you call the [`capturePhoto(with:delegate:)`](/documentation/AVFoundation/AVCapturePhotoOutput/capturePhoto(with:delegate:)) method. If your settings and delegate don’t meet these requirements, that method raises an exception.

---

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)