Normal Topic newpage(w,h) - does it accept metric values (Read 1113 times)
beagle
Junior Member
**
Offline


No personal text

Posts: 80
Location: australia
Joined: May 28th, 2004
newpage(w,h) - does it accept metric values
Nov 2nd, 2004 at 3:34am
Print Post Print Post  
Hi all,

For those of us not "yet" under the USA way of doing things does the newpage(w,h) command accept metric measurements ?

eg if I had a page, say, 6" x 12" the newpage command would look like, newpage(600,1200).
would the command (150,300) give the same results - page size etc

15cm = 6" / 30cm = 12"

Or is the basic unit of measurement in Sesame based on the inch ?
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: newpage(w,h) - does it accept metric values
Reply #1 - Nov 2nd, 2004 at 12:52pm
Print Post Print Post  
The NewPage command does not use any particular measurement system. It divides your page into arbitrary units you decide, without regard for page size or shape. In other words, the command tells Sesame to divide the page into a grid. The number of horizontal cells and vertical cells in that grid are the parameters passed to NewPage.

So, NewPage(800, 1600)

will divide the page into 800 units across and 1600 units down, no matter how big you page is. The purpose of the parameters is to give the programmer control of how fine a resolution they want to work. The larger the parameters, the finer the control.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
beagle
Junior Member
**
Offline


No personal text

Posts: 80
Location: australia
Joined: May 28th, 2004
Re: newpage(w,h) - does it accept metric values
Reply #2 - Nov 2nd, 2004 at 10:26pm
Print Post Print Post  
Hi Mark,

Thanks for the clarification

Smiley
  
Back to top
 
IP Logged