Function photon_rs::open_image
source · pub fn open_image(
canvas: HtmlCanvasElement,
ctx: CanvasRenderingContext2d
) -> PhotonImage
Expand description
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.