[−][src]Function gdl::open_image
pub fn open_image(
canvas: HtmlCanvasElement,
ctx: CanvasRenderingContext2d
) -> PhotonImage
Convert the ImageData found in the canvas context to a PhotonImage, which can be used to filter or apply effects to the image