CIToneCurve

Trait CIToneCurve 

Source
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 { ... }
}
Available on crate features 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§

Source

unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
where Self: Sized + Message,

Available on crate feature CIImage only.

The image to use as an input for the effect.

Source

unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
where Self: Sized + Message,

Available on crate feature CIImage only.

Setter for inputImage.

Source

unsafe fn point0(&self) -> CGPoint
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

A vector containing the position of the first point of the tone curve.

Source

unsafe fn setPoint0(&self, point0: CGPoint)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for point0.

Source

unsafe fn point1(&self) -> CGPoint
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

A vector containing the position of the second point of the tone curve.

Source

unsafe fn setPoint1(&self, point1: CGPoint)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for point1.

Source

unsafe fn point2(&self) -> CGPoint
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

A vector containing the position of the third point of the tone curve.

Source

unsafe fn setPoint2(&self, point2: CGPoint)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for point2.

Source

unsafe fn point3(&self) -> CGPoint
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

A vector containing the position of the fourth point of the tone curve.

Source

unsafe fn setPoint3(&self, point3: CGPoint)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for point3.

Source

unsafe fn point4(&self) -> CGPoint
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

A vector containing the position of the fifth point of the tone curve.

Source

unsafe fn setPoint4(&self, point4: CGPoint)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for point4.

Source

unsafe fn extrapolate(&self) -> bool
where Self: Sized + Message,

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.

Source

unsafe fn setExtrapolate(&self, extrapolate: bool)
where Self: Sized + Message,

Setter for extrapolate.

Trait Implementations§

Source§

impl ProtocolType for dyn CIToneCurve

Source§

const NAME: &'static str = "CIToneCurve"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn CIToneCurve
where T: ?Sized + Message + CIToneCurve,

Implementations on Foreign Types§

Source§

impl<T> CIToneCurve for ProtocolObject<T>
where T: ?Sized + CIToneCurve,

Implementors§