/[flash]/openlayers/pdf2tiles.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /openlayers/pdf2tiles.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 23 by dpavlin, Mon Feb 25 00:56:00 2008 UTC revision 24 by dpavlin, Mon Feb 25 00:58:52 2008 UTC
# Line 48  print "## total size = $x_res*$y_res\n"; Line 48  print "## total size = $x_res*$y_res\n";
48  my $curr_w = 256 * 2;  my $curr_w = 256 * 2;
49  my $curr_h = 256;  my $curr_h = 256;
50    
51  my $start_dpi = int( 100 / ( $x_res / $curr_w ) ) - 1;  my $x_dpi = int( 100 / ( $x_res / $curr_w ) ) - 1;      # 1 dpi margins
52    my $y_dpi = int( 100 / ( $y_res / $curr_h ) );
53    
54    my $start_dpi = $x_dpi < $y_dpi ? $x_dpi : $y_dpi;
55    
56  foreach my $zoom ( 1 .. 10 ) {  foreach my $zoom ( 1 .. 10 ) {
57    

Legend:
Removed from v.23  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26