[jboss-user] [JBoss jBPM] - Re: showing image of current process stage
Heiner Niehues
do-not-reply at jboss.com
Mon Aug 6 17:04:10 EDT 2007
I have also this problem.. that the rectangle are not at the right place.
But i used a javascript library (http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm)
to create the rectangle.
I use a offset to fix it. I will take a look tomorrow more.
| <html>
| <head><title>Show the Picture</title>
| <script type="text/javascript" src="js/wz_jsgraphics.js"></script>
| </head>
| <body>
| <div style="left:0px; top:0px; position:absolute;">
| <img src="img\processimage.jpg" alt="">
| </div>
| <script type="text/javascript">
| <!--
| function drawRect(x,y,width, height)
| {
| jg_doc.setColor("red");
| jg_doc.setStroke(4);
| jg_doc.drawRect(x, y, width, height);
| jg_doc.paint();
| }
|
| var jg_doc = new jsGraphics();
| drawRect(${coord[0]} + 217,${coord[1]} - 2 ,${coord[2]},${coord[3]});
| //-->
| </script>
| </body>
| </html>
|
|
Heiner
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071372#4071372
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071372
More information about the jboss-user
mailing list