[−][src]Function photon_rs::open_image
pub fn open_image(
canvas: HtmlCanvasElement,
ctx: CanvasRenderingContext2d
) -> PhotonImage
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.