Share via


CGImage.WithMaskingColors(nfloat[]) 方法

定义

通过使用指定的组件屏蔽映像中的值,创建新映像。

public CoreGraphics.CGImage WithMaskingColors (nfloat[] components);
member this.WithMaskingColors : nfloat[] -> CoreGraphics.CGImage

参数

components
nfloat[]

数组包含每个组件的 (min、max) 浮点数对。

返回

注解

如果映像具有三个分量 (RGB 例如) 则组件数组应包含六个值。

适用于