Creates a copy of a bitmap image, replacing its colorspace.
- iOS 2.0+
- macOS 10.3+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
- Core Graphics
The graphics image to copy.
The destination color space. The number of components in this color space must be the same as the number in the specified image.
A new CGImage that is a copy of the image passed as the
image parameter but with its color space replaced by that specified by the
colorspace parameter. Returns
image is an image mask, or if the number of components of
colorspace is not the same as the number of components of the colorspace of
image. You are responsible for releasing this object using