<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBitmapImageRep/LoadStatus",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSImageRepLoadStatus"
  },
  "title" : "NSBitmapImageRep.LoadStatus"
}
-->

# NSBitmapImageRep.LoadStatus

Constants that identify the loading status of the image.

```
enum LoadStatus
```

## Overview

These status values are returned by [`incrementalLoad(from:complete:)`](/documentation/AppKit/NSBitmapImageRep/incrementalLoad(from:complete:)).

## Topics

### Constants

[`NSBitmapImageRep.LoadStatus.unknownType`](/documentation/AppKit/NSBitmapImageRep/LoadStatus/unknownType)

Not enough data to determine image format. You should continue to provide more data.

[`NSBitmapImageRep.LoadStatus.readingHeader`](/documentation/AppKit/NSBitmapImageRep/LoadStatus/readingHeader)

The image format is known, but not enough data has been read to determine the size, depth, etc., of the image. You should continue to provide more data.

[`NSBitmapImageRep.LoadStatus.willNeedAllData`](/documentation/AppKit/NSBitmapImageRep/LoadStatus/willNeedAllData)

Incremental loading cannot be supported.

[`NSBitmapImageRep.LoadStatus.invalidData`](/documentation/AppKit/NSBitmapImageRep/LoadStatus/invalidData)

An error occurred during image decompression. The image contains the portions of the data that have already been successfully decompressed, if any

[`NSBitmapImageRep.LoadStatus.unexpectedEOF`](/documentation/AppKit/NSBitmapImageRep/LoadStatus/unexpectedEOF)

Not enough data was available to fully decompress the image.

[`NSBitmapImageRep.LoadStatus.completed`](/documentation/AppKit/NSBitmapImageRep/LoadStatus/completed)

Enough data has been provided to successfully decompress the image (regardless of the complete: flag).



---

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)