CGImage.WithColorSpace(CGColorSpace) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a copy of the image based on the specified colorspace.
public CoreGraphics.CGImage WithColorSpace (CoreGraphics.CGColorSpace cs);
member this.WithColorSpace : CoreGraphics.CGColorSpace -> CoreGraphics.CGImage
Parameters
- cs
- CGColorSpace
Returns
Remarks
This method could return null if the image is a mask, or if there is a colorspace component mismatch between the images.