Contents

imageWithCGImage:

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

Declaration

+ (UIImage *) imageWithCGImage:(CGImageRef) cgImage;

Parameters

  • cgImage:

    The Quartz image object.

Return Value

A new image object for the specified Quartz image, or nil if the method could not initialize the image from the specified image reference.

Discussion

This method does not cache the image object. You can use the methods of the Core Graphics framework to create a Quartz image reference.

See Also

Creating and initializing image objects