[][src]Function photon_rs::__wasm_bindgen_generated_open_image

pub extern "C" fn __wasm_bindgen_generated_open_image(
    arg0: <HtmlCanvasElement as FromWasmAbi>::Abi,
    arg1: <CanvasRenderingContext2d as FromWasmAbi>::Abi
) -> <PhotonImage as ReturnWasmAbi>::Abi

Convert a HTML5 Canvas Element to a PhotonImage.

This converts the ImageData found in the canvas context to a PhotonImage, which can then have effects or filters applied to it.