l'essentiel est invisible pour les yeux

Monday, November 06, 2006

Canvas.getContext.drawWindow

Firefox 1.5以上 only.

現在のウインドを描画する 削除




var canvas = document.getElementById('c1');
var ctx = canvas.getContext('2d');
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
with(ctx) {
translate(canvas.width/2, 0);
scale(0.6, 0.6);
rotate(Math.PI/4, Math.PI/4);
drawWindow(window, 0, 0, 600, 600, "#000000");
lineWidth = 2.0;
strokeRect(0, 0, 600, 600);
}