CIPerspectiveCorrection

Trait CIPerspectiveCorrection 

Source
pub unsafe trait CIPerspectiveCorrection: CIFourCoordinateGeometryFilter {
    // Provided methods
    unsafe fn crop(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn setCrop(&self, crop: bool)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Perspective Correction filter.

Apply a perspective correction to an image. This geometry maps four control points in the input image to a rectangle.

See also Apple’s documentation

Provided Methods§

Source

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

If true then the filter crops the output image to the rectangle that the points map to. If false, then pixels from outside the four control points remain in the output image

Source

unsafe fn setCrop(&self, crop: bool)
where Self: Sized + Message,

Setter for crop.

Trait Implementations§

Source§

impl ProtocolType for dyn CIPerspectiveCorrection

Source§

const NAME: &'static str = "CIPerspectiveCorrection"

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 CIPerspectiveCorrection

Implementations on Foreign Types§

Source§

impl<T> CIPerspectiveCorrection for ProtocolObject<T>

Implementors§