pub unsafe trait CILineOverlay: 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 NRNoiseLevel(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setNRNoiseLevel(&self, nr_noise_level: c_float)
where Self: Sized + Message { ... }
unsafe fn NRSharpness(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setNRSharpness(&self, nr_sharpness: c_float)
where Self: Sized + Message { ... }
unsafe fn edgeIntensity(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setEdgeIntensity(&self, edge_intensity: c_float)
where Self: Sized + Message { ... }
unsafe fn threshold(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setThreshold(&self, threshold: c_float)
where Self: Sized + Message { ... }
unsafe fn contrast(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setContrast(&self, contrast: c_float)
where Self: Sized + Message { ... }
}CIFilter and CIFilterBuiltins only.Expand description
The protocol for the Line Overlay filter.
Creates a sketch that outlines the edges of an image in black, leaving the non-outlined portions of the image transparent. The result has alpha and is rendered in black, so it won’t look like much until you render it over another image using source over compositing.
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 NRNoiseLevel(&self) -> c_float
unsafe fn NRNoiseLevel(&self) -> c_float
The noise level of the image (used with camera data) that gets removed before tracing the edges of the image. Increasing the noise level helps to clean up the traced edges of the image.
Sourceunsafe fn setNRNoiseLevel(&self, nr_noise_level: c_float)
unsafe fn setNRNoiseLevel(&self, nr_noise_level: c_float)
Setter for NRNoiseLevel.
Sourceunsafe fn NRSharpness(&self) -> c_float
unsafe fn NRSharpness(&self) -> c_float
The amount of sharpening done when removing noise in the image before tracing the edges of the image. This improves the edge acquisition.
Sourceunsafe fn setNRSharpness(&self, nr_sharpness: c_float)
unsafe fn setNRSharpness(&self, nr_sharpness: c_float)
Setter for NRSharpness.
Sourceunsafe fn edgeIntensity(&self) -> c_float
unsafe fn edgeIntensity(&self) -> c_float
The accentuation factor of the Sobel gradient information when tracing the edges of the image. Higher values find more edges, although typically a low value (such as 1.0) is used.
Sourceunsafe fn setEdgeIntensity(&self, edge_intensity: c_float)
unsafe fn setEdgeIntensity(&self, edge_intensity: c_float)
Setter for edgeIntensity.
Sourceunsafe fn threshold(&self) -> c_float
unsafe fn threshold(&self) -> c_float
This value determines edge visibility. Larger values thin out the edges.
Sourceunsafe fn setThreshold(&self, threshold: c_float)
unsafe fn setThreshold(&self, threshold: c_float)
Setter for threshold.