pub fn level_image(
        &self,
        black_point: f64,
        gamma: f64,
        white_point: f64,
    ) -> Result<(), &'static str> {
        let quantum_range = self.quantum_range()?;

        let result = unsafe {
            bindings::MagickLevelImage(
                self.wand,
                black_point * quantum_range,
                gamma,
                white_point * quantum_range,
            )
        };
        match result {
            bindings::MagickBooleanType_MagickTrue => Ok(()),
            _ => Err("failed to set size of wand"),
        }
    }
// Level an image. Black and white points are multiplied with QuantumRange to
// decrease dependencies on the end user.
Level an image. Black and white points are multiplied with QuantumRange to
decrease dependencies on the end user.
Level an image . Black and white points are multiplied with QuantumRange to decrease dependencies on the end user .
pub fn level_image(
        &self,
        black_point: f64,
        gamma: f64,
        white_point: f64,
    ) -> Result<(), &'static str> {
        let quantum_range = self.quantum_range()?;
        let result = unsafe {
            bindings::MagickLevelImage(
                self.wand,
                black_point * quantum_range,
                gamma,
                white_point * quantum_range,
            )
        };
        match result {
            bindings::MagickBooleanType_MagickTrue => Ok(()),
            _ => Err("failed to set size of wand"),
        }
    }
pub fn level_image ( & self , black_point : f64 , gamma : f64 , white_point : f64 , ) -> Result < ( ) , & ' static str > { let quantum_range = self . quantum_range ( ) ? ; let result = unsafe { bindings :: MagickLevelImage ( self . wand , black_point * quantum_range , gamma , white_point * quantum_range , ) } ; match result { bindings :: MagickBooleanType_MagickTrue => Ok ( ( ) ) , _ => Err ( " " ) , } }
Level an image.
Level an image .
&self
black_point
f64
gamma
f64
white_point
f64
&self
black_point
f64
gamma
f64
white_point
f64