CISignedDistanceGradientFromRedMask

Trait CISignedDistanceGradientFromRedMask 

Source
pub unsafe trait CISignedDistanceGradientFromRedMask: CIFilterProtocol {
    // 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 maximumDistance(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setMaximumDistance(&self, maximum_distance: c_float)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Signed Distance Gradient From Red Mask filter.

Produces an infinite image where the red channel contains the distance in pixels from each pixel to the mask.

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 input image whose red channel defines a mask. If the red channel pixel value is greater than 0.5 then the point is considered in the mask and output pixel will be a value between zero and negative one. Otherwise the output pixel will be a value between zero and one.

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 maximumDistance(&self) -> c_float
where Self: Sized + Message,

Determines the maximum distance to the mask that can be measured. Distances between zero and the maximum will be normalized to negative one and one.

Source

unsafe fn setMaximumDistance(&self, maximum_distance: c_float)
where Self: Sized + Message,

Setter for maximumDistance.

Trait Implementations§

Source§

impl ProtocolType for dyn CISignedDistanceGradientFromRedMask

Source§

const NAME: &'static str = "CISignedDistanceGradientFromRedMask"

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 CISignedDistanceGradientFromRedMask

Implementations on Foreign Types§

Source§

impl<T> CISignedDistanceGradientFromRedMask for ProtocolObject<T>

Implementors§