CIMaximumScaleTransform

Trait CIMaximumScaleTransform 

Source
pub unsafe trait CIMaximumScaleTransform: 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 scale(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setScale(&self, scale: c_float)
       where Self: Sized + Message { ... }
    unsafe fn aspectRatio(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setAspectRatio(&self, aspect_ratio: c_float)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Maximum Scale Transform filter.

Produces a scaled version of a source image that uses the maximum of neighboring pixels instead of linear averaging.

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

The scaling factor to use on the image. Values less than 1.0 scale down the images. Values greater than 1.0 scale up the image.

Source

unsafe fn setScale(&self, scale: c_float)
where Self: Sized + Message,

Setter for scale.

Source

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

The additional horizontal scaling factor to use on the image.

Source

unsafe fn setAspectRatio(&self, aspect_ratio: c_float)
where Self: Sized + Message,

Setter for aspectRatio.

Trait Implementations§

Source§

impl ProtocolType for dyn CIMaximumScaleTransform

Source§

const NAME: &'static str = "CIMaximumScaleTransform"

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 CIMaximumScaleTransform

Implementations on Foreign Types§

Source§

impl<T> CIMaximumScaleTransform for ProtocolObject<T>

Implementors§