pub unsafe trait CIToneCurve: CIFilterProtocol {
Show 14 methods
// Provided methods
unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
where Self: Sized + Message { ... }
unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
where Self: Sized + Message { ... }
unsafe fn point0(&self) -> CGPoint
where Self: Sized + Message { ... }
unsafe fn setPoint0(&self, point0: CGPoint)
where Self: Sized + Message { ... }
unsafe fn point1(&self) -> CGPoint
where Self: Sized + Message { ... }
unsafe fn setPoint1(&self, point1: CGPoint)
where Self: Sized + Message { ... }
unsafe fn point2(&self) -> CGPoint
where Self: Sized + Message { ... }
unsafe fn setPoint2(&self, point2: CGPoint)
where Self: Sized + Message { ... }
unsafe fn point3(&self) -> CGPoint
where Self: Sized + Message { ... }
unsafe fn setPoint3(&self, point3: CGPoint)
where Self: Sized + Message { ... }
unsafe fn point4(&self) -> CGPoint
where Self: Sized + Message { ... }
unsafe fn setPoint4(&self, point4: CGPoint)
where Self: Sized + Message { ... }
unsafe fn extrapolate(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn setExtrapolate(&self, extrapolate: bool)
where Self: Sized + Message { ... }
}CIFilter and CIFilterBuiltins only.Expand description
The protocol for the Tone Curve filter.
Adjusts tone response of the R, G, and B channels of an image. The input points are five x,y values that are interpolated using a spline curve. The curve is applied in a perceptual (gamma 2) version of the working space.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn inputImage(&self) -> Option<Retained<CIImage>>
Available on crate feature CIImage only.
unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
CIImage only.The image to use as an input for the effect.
Sourceunsafe fn setInputImage(&self, input_image: Option<&CIImage>)
Available on crate feature CIImage only.
unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
CIImage only.Setter for inputImage.
Sourceunsafe fn point0(&self) -> CGPoint
Available on crate feature objc2-core-foundation only.
unsafe fn point0(&self) -> CGPoint
objc2-core-foundation only.A vector containing the position of the first point of the tone curve.
Sourceunsafe fn setPoint0(&self, point0: CGPoint)
Available on crate feature objc2-core-foundation only.
unsafe fn setPoint0(&self, point0: CGPoint)
objc2-core-foundation only.Setter for point0.
Sourceunsafe fn point1(&self) -> CGPoint
Available on crate feature objc2-core-foundation only.
unsafe fn point1(&self) -> CGPoint
objc2-core-foundation only.A vector containing the position of the second point of the tone curve.
Sourceunsafe fn setPoint1(&self, point1: CGPoint)
Available on crate feature objc2-core-foundation only.
unsafe fn setPoint1(&self, point1: CGPoint)
objc2-core-foundation only.Setter for point1.
Sourceunsafe fn point2(&self) -> CGPoint
Available on crate feature objc2-core-foundation only.
unsafe fn point2(&self) -> CGPoint
objc2-core-foundation only.A vector containing the position of the third point of the tone curve.
Sourceunsafe fn setPoint2(&self, point2: CGPoint)
Available on crate feature objc2-core-foundation only.
unsafe fn setPoint2(&self, point2: CGPoint)
objc2-core-foundation only.Setter for point2.
Sourceunsafe fn point3(&self) -> CGPoint
Available on crate feature objc2-core-foundation only.
unsafe fn point3(&self) -> CGPoint
objc2-core-foundation only.A vector containing the position of the fourth point of the tone curve.
Sourceunsafe fn setPoint3(&self, point3: CGPoint)
Available on crate feature objc2-core-foundation only.
unsafe fn setPoint3(&self, point3: CGPoint)
objc2-core-foundation only.Setter for point3.
Sourceunsafe fn point4(&self) -> CGPoint
Available on crate feature objc2-core-foundation only.
unsafe fn point4(&self) -> CGPoint
objc2-core-foundation only.A vector containing the position of the fifth point of the tone curve.
Sourceunsafe fn setPoint4(&self, point4: CGPoint)
Available on crate feature objc2-core-foundation only.
unsafe fn setPoint4(&self, point4: CGPoint)
objc2-core-foundation only.Setter for point4.
Sourceunsafe fn extrapolate(&self) -> bool
unsafe fn extrapolate(&self) -> bool
If true, then the color effect will be extrapolated if the input image contains RGB component values outside the range 0.0 to 1.0.
Sourceunsafe fn setExtrapolate(&self, extrapolate: bool)
unsafe fn setExtrapolate(&self, extrapolate: bool)
Setter for extrapolate.