HTML5 Canvas for Internet Explorer via Flash

Dropdown Menu

Canvas API supported by FlashCanvas

The following tables show the Canvas APIs supported by FlashCanvas. The current support status of ExplorerCanvas library is also shown for comparison. As for the concrete usage of these methods/attributes, please refer to the specifications listed below.

We will gradually backport the source code from FlashCanvas Pro to FlashCanvas. That means open-source version of FlashCanvas would support more Canvas APIs in the future.

HTMLCanvasElement

  ExplorerCanvas r73 FlashCanvas FlashCanvas Pro
width Yes Yes Yes
height Yes Yes Yes
getContext() Yes Yes Yes
toDataURL("image/png")   Yes Yes
toDataURL("image/jpeg")   Yes Yes

CanvasRenderingContext2D

  ExplorerCanvas r73 FlashCanvas FlashCanvas Pro
canvas Yes Yes Yes
save() Yes Yes Yes
restore() Yes Yes Yes
scale() Yes Yes Yes
rotate() Yes Yes Yes
translate() Yes Yes Yes
transform() Yes Yes Yes
setTransform() Yes Yes Yes
globalAlpha Yes Yes Yes
globalCompositeOperation     Yes
strokeStyle Yes Yes[1] Yes[2]
fillStyle Yes Yes Yes
createLinearGradient() Yes Yes Yes
createRadialGradient()   Yes Yes
createPattern(img) Yes Yes Yes
createPattern(canvas)     Yes[3]
createPattern(video)      
lineWidth Yes Yes Yes
lineCap Yes Yes Yes
lineJoin Yes Yes Yes
miterLimit Yes Yes Yes
shadowOffsetX     Yes
shadowOffsetY     Yes
shadowBlur     Yes
shadowColor     Yes
clearRect() Yes Yes Yes
fillRect() Yes Yes Yes
strokeRect() Yes Yes Yes
beginPath() Yes Yes Yes
closePath() Yes Yes Yes
moveTo() Yes Yes Yes
lineTo() Yes Yes Yes
quadraticCurveTo() Yes Yes Yes
bezierCurveTo() Yes Yes Yes
arcTo()   Yes Yes
rect() Yes Yes Yes
arc() Yes Yes Yes
fill() Yes Yes Yes
stroke() Yes Yes Yes
clip()   Yes[4] Yes
isPointInPath()     Yes
drawFocusRing()      
font Yes Yes Yes
textAlign Yes Yes Yes
textBaseline Yes Yes Yes
fillText() Yes Yes[5] Yes
strokeText() Yes Yes[5] Yes
measureText() Yes Yes Yes
drawImage(img) Yes Yes Yes
drawImage(canvas)     Yes[3]
drawImage(video)      
createImageData()     Yes
getImageData()     Yes[6]
putImageData()     Yes[6]
  • [1]. strokeStyle does not support CanvasPattern object.
  • [2]. strokeStyle does not support CanvasPattern object when used with Flash Player 9.
  • [3]. a. b. You cannot copy an image from hidden/offscreen canvases.
  • [4]. clip() does not work for images and texts.
  • [5]. a. b. Gradients and patterns are not supported yet.
  • [6]. a. b. getImageData()/putImageData() are very slow. The data transfer between JavaScript and Flash takes much time.