开发者

How to draw rectangular box programmatically in javascript

I am trying to draw the rectangular box on开发者_StackOverflow stacklayout's view programmatically (on runtime) using javascript so if any one has a solution for that please do tell me.

Thnx in advance

Parag


place a canvas part on the view within stacklayout then use canvas draw functions from js;

var c=document.getElementById("canvas");
var cxt=c.getContext("2d");
cxt.fillStyle="#FF0000";
cxt.fillRect(0,0,75,75);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜