开发者

How to draw rectangular box programmatically in javascript

开发者 https://www.devze.com 2023-03-19 18:09 出处:网络
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.

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

精彩评论

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