Lines Matching refs:psheight

979 int  psRotateImage (FILE * fd, int rotation, double pswidth, double psheight,  in psRotateImage()  argument
988 case 0: fprintf (fd, "%f %f scale\n", pswidth, psheight); in psRotateImage()
990 case 90: fprintf (fd, "%f %f scale\n1 0 translate 90 rotate\n", psheight, pswidth); in psRotateImage()
992 case 180: fprintf (fd, "%f %f scale\n1 1 translate 180 rotate\n", pswidth, psheight); in psRotateImage()
994 case 270: fprintf (fd, "%f %f scale\n0 1 translate 270 rotate\n", psheight, pswidth); in psRotateImage()
997 fprintf( fd, "%f %f scale\n", pswidth, psheight); in psRotateImage()
1005 double reqwidth, double reqheight, double pswidth, double psheight, in psScaleImage() argument
1016 hcenter = (reqwidth - psheight * scale) / 2; in psScaleImage()
1018 … fprintf (fd, "%f %f scale\n1 0 translate 90 rotate\n", psheight * scale, pswidth * scale); in psScaleImage()
1021 vcenter = (reqheight - psheight * scale) / 2; in psScaleImage()
1023 … fprintf (fd, "%f %f scale\n1 1 translate 180 rotate\n", pswidth * scale, psheight * scale); in psScaleImage()
1026 hcenter = (reqwidth - psheight * scale) / 2; in psScaleImage()
1028 … fprintf (fd, "%f %f scale\n0 1 translate 270 rotate\n", psheight * scale, pswidth * scale); in psScaleImage()
1032 vcenter = (reqheight - psheight * scale) / 2; in psScaleImage()
1034 fprintf (fd, "%f %f scale\n", pswidth * scale, psheight * scale); in psScaleImage()
1043 bottom_offset ? bottom_offset : reqheight - (psheight * scale)); in psScaleImage()
1044 fprintf (fd, "%f %f scale\n", pswidth * scale, psheight * scale); in psScaleImage()
1048 … fprintf (fd, "%f %f scale\n1 0 translate 90 rotate\n", psheight * scale, pswidth * scale); in psScaleImage()
1051 bottom_offset ? bottom_offset : reqheight - (psheight * scale)); in psScaleImage()
1052 … fprintf (fd, "%f %f scale\n1 1 translate 180 rotate\n", pswidth * scale, psheight * scale); in psScaleImage()
1056 … fprintf (fd, "%f %f scale\n0 1 translate 270 rotate\n", psheight * scale, pswidth * scale); in psScaleImage()
1059 fprintf (fd, "%f %f scale\n", pswidth * scale, psheight * scale); in psScaleImage()
1071 double reqwidth, double reqheight, double pswidth, double psheight) in psPageSize() argument
1090 yscale = reqheight / (splitheight ? splitheight : psheight); in psPageSize()
1094 new_height = splitheight ? splitheight : scale * psheight; in psPageSize()
1110 … fprintf (fd, "%%%%PageOrientation: %s\n", (pswidth > psheight) ? "Landscape" : "Portrait"); in psPageSize()
1111 fprintf (fd, "%%%%PageBoundingBox: 0 0 %ld %ld\n", (long)pswidth, (long)psheight); in psPageSize()
1113 pswidth, psheight); in psPageSize()
1133 yscale = reqheight / (splitheight ? splitheight : psheight); in psPageSize()
1136 new_width = splitwidth ? splitwidth : scale * psheight; in psPageSize()
1154 … fprintf (fd, "%%%%PageOrientation: %s\n", (psheight > pswidth) ? "Landscape" : "Portrait"); in psPageSize()
1155 fprintf (fd, "%%%%PageBoundingBox: 0 0 %ld %ld\n", (long)psheight, (long)pswidth); in psPageSize()
1157 psheight, pswidth); in psPageSize()
1186 double pswidth, double psheight, double scale) in psMaskImage() argument
1194 if (get_viewport (pgwidth, pgheight, pswidth, psheight, &view_width, &view_height, rotation)) in psMaskImage()
1200 if (get_subimage_count(pgwidth, pgheight, pswidth, psheight, in psMaskImage()
1219 view_width, view_height, pswidth, psheight)) in psMaskImage()
1224 if (exportMaskedImage(fd, view_width, view_height, pswidth, psheight, in psMaskImage()
1244 double reqwidth, double reqheight, double pswidth, double psheight, in psStart() argument
1276 maxsource = (pswidth >= psheight) ? pswidth : psheight; in psStart()
1280 ((maxsource == psheight) && (maxtarget != reqheight))) in psStart()
1283 xscale = (reqwidth - left_offset)/psheight; in psStart()
1289 yscale = (reqheight - bottom_offset)/psheight; in psStart()
1318 yscale = (reqheight - bottom_offset) / (page_height ? page_height : psheight); in psStart()
1329 view_height = splitheight ? splitheight: *scale * psheight; in psStart()
1336 yscale = (reqheight - bottom_offset) / psheight; in psStart()
1344 yscale = (psheight - bottom_offset)/psheight; in psStart()
1347 view_height = psheight; in psStart()
1356 xscale = (reqwidth - left_offset)/ psheight; in psStart()
1366 view_width = splitwidth ? splitwidth : *scale * psheight; in psStart()
1373 xscale = (reqwidth - left_offset) / psheight; in psStart()
1381 xscale = (pswidth - left_offset)/ psheight; in psStart()
1382 yscale = (psheight - bottom_offset)/ pswidth; in psStart()
1384 view_width = psheight; in psStart()
1403 int get_viewport (double pgwidth, double pgheight, double pswidth, double psheight, in get_viewport() argument
1432 case 180: *view_height = psheight; in get_viewport()
1467 case 270: *view_width = psheight; /* (*view_height / psheight) * psheight; */ in get_viewport()
1486 double pswidth, psheight; /* Original raw image width and height in points */ in TIFF2PS() local
1529 setupPageState(tif, &pixwidth, &pixheight, &pswidth, &psheight); in TIFF2PS()
1531 view_height = psheight; in TIFF2PS()
1533 if (get_viewport (pgwidth, pgheight, pswidth, psheight, &view_width, &view_height, rotation)) in TIFF2PS()
1541 pgwidth, pgheight, view_width, view_height, pswidth, psheight, in TIFF2PS()
1556 pswidth, psheight, scale) < 0) in TIFF2PS()
1573 view_width, view_height, pswidth, psheight)) in TIFF2PS()
1579 pswidth, psheight, left_offset, bottom_offset)) in TIFF2PS()
1598 view_width, view_height, pswidth, psheight)) in TIFF2PS()
1603 if (psRotateImage(fd, rotation, pswidth, psheight, left_offset, bottom_offset)) in TIFF2PS()