I am sorry to see that you got surprised by it, but please note that it's NOT 
an SVG issue, it's true for any screen-drawing...

If you state that "mm (...) must be displayed exactly so on the
screen - independent of the screen resolution or the display device", you are 
asking an impossible thing. 

It might calculate how many pixels theoreticaaly would go into a mm if the 
screen is supposed to have a 72 dpi resolution, but how is the application to 
know how big a pixel REALLY is on your screen...? It might be able (depending 
on the OS and so on) to find out to what resolution your graphics card is set 
and maybe even how large the screen is "supposed" to be, but as soon as 
somebody fiddles for example with the screen controls and changes the 
horizontal or vertical sync, or connects another type of monitor, the size of 
you rectangle would change!


____________________________
Barend Köbben
International Institute for Geo-information Sciences and  Earth Observation 
(ITC)
PO Box 6, 7500AA Enschede (The Netherlands)
ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 
_____________________________

-----Original Message-----
From: kanmac1 [mailto:[EMAIL PROTECTED] 
Sent: Monday, 07 February 2005 11:53
To: svg-developers@yahoogroups.com
Subject: [svg-developers] real world unit vs screen resolution or display device



Hi all,

PLS HELP!!!!!!!

we've got a major problem with SVGs. It may have an absolutely
distroying impact on our application. We use Adobe SVG Viewer 3.0 in
the IE6.0.
Our charts have fixed width and height given in real world units (like
mm or px, - whatever) and they must be displayed exactly so on the
screen - independent of the screen resolution or the display device
parameters. Look at this.

<svg width="200mm" height="200mm" viewBox="0 0 200 200">
<rect x="50" y="50" width="100" height="100" style="fill:red"/>
</svg>

I expected the ASV to show me always!!! a rectangle which is 10cm wide
and 10 cm high and which starts exactly 5cm (on x-axis and y-axis)
from the (0,0) point of the SVG coordinate system.

If I display it on my monitor in the 1280x1024 resolution it looks
pretty well. But if I change the resolution to 800x600 I see my rect
has nothing to do with the dimensions I expected :( It's been a BIG
surprise to us for last few days. I went through the SVG1.1. spec but
I can't really get how to make my rect look always same (independent
of the resolution and display device).
I hope it is just a matter of proper setting of width, height and
viewBox attributes on the outer-most svg element. Any help is welcome.
And we need it ASAP.
cheers
Maciek





-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links



 





-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to