CIConvertLab

Trait CIConvertLab 

Source
pub unsafe trait CIConvertLab: 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 normalize(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn setNormalize(&self, normalize: bool)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

A protocol for filters that convert an image between CIELAB color space and the Core Image RGB working space.

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 convert.

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

The normalize Boolean defines the range of values in CIELAB space.

  • false: L is in the range 0...100 and A,B are in the range -128...128.
  • true: L,A,B are in the range 0...1.
Source

unsafe fn setNormalize(&self, normalize: bool)
where Self: Sized + Message,

Setter for normalize.

Trait Implementations§

Source§

impl ProtocolType for dyn CIConvertLab

Source§

const NAME: &'static str = "CIConvertLab"

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

Implementations on Foreign Types§

Source§

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

Implementors§