init(imageData:)
Creates an image object from the specified data.
Declaration
convenience init(imageData: Data)Parameters
- imageData:
The data that contains the image, which you can create programmatically or load from an image file. The image can be in any format that the system supports.
Return Value
An image object that contains the specified image data, or nil if that image data is invalid.