Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Shape sizes imagemap / Java-applet (Read 2652 times)
ebibnet
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Aug 25th, 2008
Shape sizes imagemap / Java-applet
Dec 28th, 2008 at 9:54pm
Print Post  
Hi

We are having some difficulties with the size of the shapes...

we draw some shapes in java-applet mode and  save the result  to xml .

Now when we load the xml back into javaapplet - everything is fine  (as initialy created...)

But some users see the result (same xml file) in an imagemap and then the shapes appear to be much bigger .... 

in other words they see a completely different result ... we would like to have the same  dimensions in both modes ...

that same xml will be used in an imagemap ...

anyone any idea/or  workaround ....

Thankkkssss!!!!

Difference between bode is the mode....

diagramView.ClientSideMode = MindFusion.Diagramming.WebForms.ClientSideMode.JavaApplet;
 
           }
           else
           {
               diagramView.ClientSideMode = MindFusion.Diagramming.WebForms.ClientSideMode.ImageMap;
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Shape sizes imagemap / Java-applet
Reply #1 - Dec 29th, 2008 at 5:55am
Print Post  
Hi,

Are the shapes like several times bigger, or say 1.x times bigger? There might be some difference because of different DPI values for the graphics adapters on the users PCs, used in JavaApplet mode, and the server's DPI, used in ImageMap mode.

Stoyan
  
Back to top
 
IP Logged
 
ebibnet
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Aug 25th, 2008
Re: Shape sizes imagemap / Java-applet
Reply #2 - Jan 1st, 2009 at 5:59pm
Print Post  
Hi Stoyo,

Yes it seems like this is the case, it is like there is a factor 1.5 times bigger ... imagemap 1.5 times bigger then applet mode....

can you think about something to oercome this problem?

Thanks a lot !
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Shape sizes imagemap / Java-applet
Reply #3 - Jan 2nd, 2009 at 8:55am
Print Post  
Hi,

You could try getting the DPI on the client-side as suggested here:
http://www.webdeveloper.com/forum/showthread.php?threadid=169369

Then post that DPI value to the server and set ZoomFactor = 100 * clientDPI / serverDPI. You must do that before the diagram is rendered on the server, e.g. get the DPI in a page displayed before the one that shows the diagram, and post it as a form parameter or query argument to the diagram page.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint