static func brightness(Double) -> GraphicsContext .Filter
Returns a filter that applies a brightness adjustment.
static func contrast(Double) -> GraphicsContext .Filter
Returns a filter that applies a contrast adjustment.
Availability 有効性
Technology
struct Filter
Create and configure a filter that produces an image processing effect, like adding a drop shadow or a blur effect, by calling one of the factory methods defined by the Filter
structure. Call the add
method to add the filter to a Graphics
. The filter only affects content that you draw into the context after adding the filter.
static func brightness(Double) -> GraphicsContext .Filter
static func contrast(Double) -> GraphicsContext .Filter
static func saturation(Double) -> GraphicsContext .Filter
static func colorInvert (Double) -> GraphicsContext .Filter
static func colorMultiply (Color) -> GraphicsContext .Filter
static func hueRotation (Angle) -> GraphicsContext .Filter
static func grayscale(Double) -> GraphicsContext .Filter
static func colorMatrix (ColorMatrix ) -> GraphicsContext .Filter
static func blur(radius: CGFloat, options: GraphicsContext .BlurOptions ) -> GraphicsContext .Filter
static var luminanceToAlpha : GraphicsContext .Filter
static func alphaThreshold (min: Double, max: Double, color: Color) -> GraphicsContext .Filter
static func projectionTransform (ProjectionTransform ) -> GraphicsContext .Filter
func addFilter (GraphicsContext .Filter, options: GraphicsContext .FilterOptions )
struct FilterOptions
struct BlurOptions
struct ShadowOptions