CGImage.WithColorSpace(CGColorSpace) Method

Definition

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

Returns

Remarks

This method could return null if the image is a mask, or if there is a colorspace component mismatch between the images.

Applies to