tong/hx.html5 — Issue #6: CanvasRenderingContext2D and js.Image
Author: Justinfront
Created: 2011-12-31 01:08:34+00:00
State: open

In CanvasRenderingContext2D (haxelib ver) I had to

import js.Dom;

and modify

function drawImage( image : js.Image, sx : Float, sy : Float, ?sw : Float, ?sh : Float, ?dx : Float, ?dy : Float, ?dw : Float, ?dh : Float ) : Bool;

to allow me to draw video on the canvas surface