pub fn generate_all_normal_maps(
        &mut self,
        kernel_filter: KernelFilter,
        height_conversion_method: HeightConversionMethod,
        normal_alpha_result: NormalAlphaResult,
    ) -> Result<()> {
        unsafe {
            ffi_try!(ffi::vlImageGenerateAllNormalMaps(
                kernel_filter as i32,
                height_conversion_method as i32,
                normal_alpha_result as i32
            ));
        }
        Ok(())
    }
/// Converts the image to a normal map using mip level 0 as the source.
///
/// # Errors
///
/// Returns `Err` if the normal map generation fails.
Converts the image to a normal map using mip level 0 as the source.
Converts the image to a normal map using mip level 0 as the source .
pub fn generate_all_normal_maps(
        &mut self,
        kernel_filter: KernelFilter,
        height_conversion_method: HeightConversionMethod,
        normal_alpha_result: NormalAlphaResult,
    ) -> Result<()> {
        unsafe {
            ffi_try!(ffi::vlImageGenerateAllNormalMaps(
                kernel_filter as i32,
                height_conversion_method as i32,
                normal_alpha_result as i32
            ));
        }
        Ok(())
    }
pub fn generate_all_normal_maps ( & mut self , kernel_filter : KernelFilter , height_conversion_method : HeightConversionMethod , normal_alpha_result : NormalAlphaResult , ) -> Result < ( ) > { unsafe { ffi_try ! ( ffi vlImageGenerateAllNormalMaps ( kernel_filter as i32 height_conversion_method as i32 normal_alpha_result as i32 ) ) ; } Ok ( ( ) ) }
Converts the image to a normal map using mip level 0 as the source.
Converts the image to a normal map using mip level 0 as the source .
&mut self
kernel_filter
KernelFilter
height_conversion_method
HeightConversionMethod
normal_alpha_result
NormalAlphaResult
&mut self
kernel_filter
KernelFilter
height_conversion_method
HeightConversionMethod
normal_alpha_result
NormalAlphaResult
errors
Returns `Err` if the normal map generation fails.
Returns ` Err ` if the normal map generation fails .