[−][src]Function photon_rs::channels::__wasm_bindgen_generated_alter_blue_channel
pub extern "C" fn __wasm_bindgen_generated_alter_blue_channel(
arg0: <PhotonImage as RefMutFromWasmAbi>::Abi,
arg1: <i16 as FromWasmAbi>::Abi
) -> <() as ReturnWasmAbi>::Abi
Increment or decrement every pixel's Blue channel by a constant.
Arguments
img
- A PhotonImage.amt
- The amount to increment or decrement the channel's value by for that pixel.
Example
// For example, to increase the Blue channel for all pixels by 10: use photon::channels; photon::channels::alter_blue_channel(&mut img, 10);