pub extern "C" fn __wasm_bindgen_generated_remove_blue_channel(
    arg0: <PhotonImage as RefMutFromWasmAbi>::Abi,
    arg1: <u8 as FromWasmAbi>::Abi
) -> <() as ReturnWasmAbi>::Abi
Expand description

Remove the Blue channel’s influence in an image.

Arguments

  • img - A PhotonImage.
  • min_filter - Only remove the channel if the current pixel’s channel value is less than this minimum filter.

Example

// For example, to remove the blue channel for blue channel pixel values less than 50:
use photon_rs::channels::remove_blue_channel;
use photon_rs::native::open_image;

let mut img = open_image("img.jpg").expect("File should open");
remove_blue_channel(&mut img, 50_u8);