static func contrast(Double) -> GraphicsContext .Filter
Returns a filter that applies a contrast adjustment.
Availability 有効性
Technology
static func brightness(_ amount: Double
) -> GraphicsContext
.Filter
A filter that applies a brightness adjustment.
amount
An amount to add to the pixel’s color components.
This filter is different than brightness
filter primitive defined by the Scalable Vector Graphics (SVG) specification. You can obtain an effect like that filter using a grayscale(_:)
color multiply. However, this filter does match the CIColor
filter’s brightness adjustment.
static func contrast(Double) -> GraphicsContext .Filter