*** empty log message ***

This commit is contained in:
Andrey Kiselev 2002-10-07 13:15:29 +00:00
parent e84a6b819a
commit e985fcbddb

View File

@ -1,4 +1,4 @@
/* $Header: /cvs/maptools/cvsroot/libtiff/tools/tiff2ps.c,v 1.11 2002-10-07 12:49:32 dron Exp $ */ /* $Header: /cvs/maptools/cvsroot/libtiff/tools/tiff2ps.c,v 1.12 2002-10-07 13:15:29 dron Exp $ */
/* /*
* Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1988-1997 Sam Leffler
@ -602,17 +602,20 @@ TIFF2PS(FILE* fd, TIFF* tif, float pw, float ph, double lm, double bm, int cnt)
if (scale > 1.0) if (scale > 1.0)
scale = 1.0; scale = 1.0;
bottom_offset += bottom_offset +=
(ph * PS_UNIT_SIZE - prh * scale) / (cnt?2:1); (ph * PS_UNIT_SIZE - prh * scale) / (cnt?2:1);
if (cnt) if (cnt)
left_offset += (pw * PS_UNIT_SIZE - prw * scale) / 2; left_offset += (pw * PS_UNIT_SIZE - prw * scale) / 2;
fprintf(fd, "%f %f translate\n", fprintf(fd, "%f %f translate\n",
left_offset, bottom_offset); left_offset, bottom_offset);
fprintf(fd, "%f %f scale\n", prw * scale, prh * scale); fprintf(fd, "%f %f scale\n", prw * scale, prh * scale);
if (rotate) if (rotate)
fputs ("1 1 translate 180 rotate\n", fd); fputs ("1 1 translate 180 rotate\n", fd);
} }
} else } else {
fprintf(fd, "%f %f scale\n", prw, prh); fprintf(fd, "%f %f scale\n", prw, prh);
if (rotate)
fputs ("1 1 translate 180 rotate\n", fd);
}
PSpage(fd, tif, w, h); PSpage(fd, tif, w, h);
fprintf(fd, "end\n"); fprintf(fd, "end\n");
fprintf(fd, "grestore\n"); fprintf(fd, "grestore\n");