CILineOverlay

Trait CILineOverlay 

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

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

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.

Source

unsafe fn setNRNoiseLevel(&self, nr_noise_level: c_float)
where Self: Sized + Message,

Setter for NRNoiseLevel.

Source

unsafe fn NRSharpness(&self) -> c_float
where Self: Sized + Message,

The amount of sharpening done when removing noise in the image before tracing the edges of the image. This improves the edge acquisition.

Source

unsafe fn setNRSharpness(&self, nr_sharpness: c_float)
where Self: Sized + Message,

Setter for NRSharpness.

Source

unsafe fn edgeIntensity(&self) -> c_float
where Self: Sized + Message,

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.

Source

unsafe fn setEdgeIntensity(&self, edge_intensity: c_float)
where Self: Sized + Message,

Setter for edgeIntensity.

Source

unsafe fn threshold(&self) -> c_float
where Self: Sized + Message,

This value determines edge visibility. Larger values thin out the edges.

Source

unsafe fn setThreshold(&self, threshold: c_float)
where Self: Sized + Message,

Setter for threshold.

Source

unsafe fn contrast(&self) -> c_float
where Self: Sized + Message,

The amount of anti-aliasing to use on the edges produced by this filter. Higher values produce higher contrast edges (they are less anti-aliased).

Source

unsafe fn setContrast(&self, contrast: c_float)
where Self: Sized + Message,

Setter for contrast.

Trait Implementations§

Source§

impl ProtocolType for dyn CILineOverlay

Source§

const NAME: &'static str = "CILineOverlay"

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 CILineOverlay
where T: ?Sized + Message + CILineOverlay,

Implementations on Foreign Types§

Source§

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

Implementors§