Instance Method

initWithCIImage:scale:orientation:

Initializes and returns an image object with the specified Core Image object and properties.

Declaration

- (instancetype)initWithCIImage:(CIImage *)ciImage scale:(CGFloat)scale orientation:(UIImageOrientation)orientation;

Parameters

ciImage

The Core Image object.

scale

The scale factor to assume when interpreting the image data. Applying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the size property.

orientation

The orientation of the image data. You can use this parameter to specify any rotation factors applied to the image.

Return Value

An initialized UIImage object. In Objective-C, this method returns nil if the ciImage parameter is nil.

See Also

Creating and Initializing Image Objects

+ imageWithContentsOfFile:

Creates and returns an image object by loading the image data from the file at the specified path.

+ imageWithData:

Creates and returns an image object that uses the specified image data.

+ imageWithData:scale:

Creates and returns an image object that uses the specified image data and scale factor.

+ imageWithCGImage:

Creates and returns an image object representing the specified Quartz image.

+ imageWithCGImage:scale:orientation:

Creates and returns an image object with the specified scale and orientation factors.

+ imageWithCIImage:

Creates and returns an image object that contains a Core Image object.

+ imageWithCIImage:scale:orientation:

Creates and returns an image object based on a Core Image object and the specified attributes.

- initWithContentsOfFile:

Initializes and returns the image object with the contents of the specified file.

- initWithData:

Initializes and returns the image object with the specified data.

- initWithData:scale:

Initializes and returns the image object with the specified data and scale factor.

- initWithCGImage:

Initializes and returns the image object with the specified Quartz image reference.

- initWithCGImage:scale:orientation:

Initializes and returns an image object with the specified scale and orientation factors

- initWithCIImage:

Initializes and returns an image object with the specified Core Image object.