Initializes and returns an image object using the contents of a Core Graphics image.
- macOS 10.6+
The size of the new image. If
NSZero, the pixel dimensions of
cgare assumed as the image’s size.
You should not assume anything about the image, other than that drawing it is equivalent to drawing the
This is not a designated initializer.