static func alphaThreshold (min: Double, max: Double, color: Color) -> GraphicsContext .Filter
Returns a filter that replaces each pixel with alpha components within a range by a constant color, or transparency otherwise.
Availability 有効性
Technology
static var luminanceToAlpha: GraphicsContext
.Filter
{ get }
A filter that applies a luminance to alpha transformation.
The filter computes the luminance of each pixel and uses it to define the opacity of the result, combined with black (zero) color components.
static func alphaThreshold (min: Double, max: Double, color: Color) -> GraphicsContext .Filter