Function photon_rs::effects::__wasm_bindgen_generated_frosted_glass
source · pub extern "C" fn __wasm_bindgen_generated_frosted_glass(
arg0: <PhotonImage as RefMutFromWasmAbi>::Abi
) -> <() as ReturnWasmAbi>::Abi
Expand description
Turn an image into an frosted glass see through
Arguments
img
- A PhotonImage that contains a view into the image.
Example
// For example, to turn an image of type `PhotonImage` into frosted glass see through:
use photon_rs::effects::frosted_glass;
use photon_rs::native::open_image;
let mut img = open_image("img.jpg").expect("File should open");
frosted_glass(&mut img);