Instance Method

initWithDataIgnoringOrientation:

Initializes and returns an image object using the provided image data and ignoring the EXIF orientation tags.

Declaration

- (instancetype)initWithDataIgnoringOrientation:(NSData *)data;

Parameters

data

The data object containing the image data. The data can be in any format that macOS supports, including PDF, PICT, EPS, or any number of bitmap data formats.

Return Value

An initialized NSImage object or nil if the method cannot create an image representation from the contents of the specified data object.

See Also

Creating an Image from Existing Data

- initWithData:

Initializes and returns an image object using the provided image data.

- initWithCGImage:size:

Initializes and returns an image object using the contents of a Core Graphics image.

- initWithPasteboard:

Initializes and returns an image object with data from the specified pasteboard.

- initWithIconRef:

Initializes the image object with a Carbon-style icon resource.

Deprecated