pub unsafe trait CIDistanceGradientFromRedMask: 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 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§
Sourceunsafe fn inputImage(&self) -> Option<Retained<CIImage>>
Available on crate feature CIImage only.
unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
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 zero. Otherwise the output pixel will be a value between zero and one.
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 maximumDistance(&self) -> c_float
unsafe fn maximumDistance(&self) -> c_float
Determines the maximum distance to the mask that can be measured. Distances between zero and the maximum will be normalized to zero and one.
Sourceunsafe fn setMaximumDistance(&self, maximum_distance: c_float)
unsafe fn setMaximumDistance(&self, maximum_distance: c_float)
Setter for maximumDistance.