Lines Matching refs:scale
697 int rotation, double scale) in get_subimage_count() argument
724 *ximages = (int)ceil((scale * imagewidth) / (pagewidth - overlap)); in get_subimage_count()
727 … *yimages = (int)ceil((scale * imageheight) / (splitheight - overlap)); /* Max vert pages needed */ in get_subimage_count()
732 … *ximages = (int)ceil((scale * imagewidth) / (pagewidth - overlap)); /* Max horz pages needed */ in get_subimage_count()
744 …*ximages = (int)ceil((scale * imagewidth) / (splitwidth - overlap)); /* Max horz pages needed */ in get_subimage_count()
746 … *yimages = (int)ceil((scale * imageheight) / (pageheight - overlap)); /* Max vert pages needed */ in get_subimage_count()
754 … *yimages = (int)ceil((scale * imageheight) / (pageheight - overlap)); /* Max vert pages needed */ in get_subimage_count()
771 … *yimages = (int)ceil((scale * imagewidth) / (splitheight - overlap)); /* Max vert pages needed */ in get_subimage_count()
773 … *ximages = (int)ceil((scale * imageheight) / (pagewidth - overlap)); /* Max horz pages needed */ in get_subimage_count()
781 …*ximages = (int)ceil((scale * imageheight) / (pagewidth - overlap)); /* Max horz pages needed */ in get_subimage_count()
793 … *yimages = (int)ceil((scale * imagewidth) / (pageheight - overlap)); /* Max vert pages needed */ in get_subimage_count()
796 …*ximages = (int)ceil((scale * imageheight) / (splitwidth - overlap)); /* Max horz pages needed … in get_subimage_count()
801 … *yimages = (int)ceil((scale * imagewidth) / (pageheight - overlap)); /* Max horz pages needed */ in get_subimage_count()
828 double scale, int center, int rotation) in exportMaskedImage() argument
844 xscale = scale * imagewidth; in exportMaskedImage()
845 yscale = scale * imageheight; in exportMaskedImage()
864 xscale = (imagewidth + overlap) * (pageheight / splitheight) * scale; in exportMaskedImage()
1004 int psScaleImage(FILE * fd, double scale, int rotation, int center, in psScaleImage() argument
1015 case 90: vcenter = (reqheight - pswidth * scale) / 2; in psScaleImage()
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()
1020 case 180: hcenter = (reqwidth - pswidth * scale) / 2; 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()
1025 case 270: vcenter = (reqheight - pswidth * scale) / 2; 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()
1031 default: hcenter = (reqwidth - pswidth * scale) / 2; 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()
1047 bottom_offset ? bottom_offset : reqheight - (pswidth * 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()
1055 bottom_offset ? bottom_offset : reqheight - (pswidth * 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()
1073 double xscale = 1.0, yscale = 1.0, scale = 1.0; in psPageSize() local
1091 scale = (xscale < yscale) ? xscale : yscale; in psPageSize()
1093 new_width = splitwidth ? splitwidth : scale * pswidth; in psPageSize()
1094 new_height = splitheight ? splitheight : scale * psheight; in psPageSize()
1134 scale = (xscale < yscale) ? xscale : yscale; in psPageSize()
1136 new_width = splitwidth ? splitwidth : scale * psheight; in psPageSize()
1137 new_height = splitheight ? splitheight : scale * pswidth; in psPageSize()
1186 double pswidth, double psheight, double scale) in psMaskImage() argument
1201 &ximages, &yimages, rotation, scale) < 1) in psMaskImage()
1226 scale, center, rotation)) in psMaskImage()
1242 int psStart(FILE *fd, int npages, int auto_rotate, int *rotation, double *scale, in psStart() argument
1291 *scale = (xscale < yscale) ? xscale : yscale; in psStart()
1294 if (*scale > 1.0) in psStart()
1295 *scale = 1.0; in psStart()
1319 *scale = (xscale < yscale) ? xscale : yscale; in psStart()
1326 *scale = 1.0; in psStart()
1328 view_width = splitwidth ? splitwidth : *scale * pswidth; in psStart()
1329 view_height = splitheight ? splitheight: *scale * psheight; in psStart()
1358 *scale = (xscale < yscale) ? xscale : yscale; in psStart()
1365 *scale = 1.0; in psStart()
1366 view_width = splitwidth ? splitwidth : *scale * psheight; in psStart()
1367 view_height = splitheight ? splitheight : *scale * pswidth; in psStart()
1396 *scale = (xscale < yscale) ? xscale : yscale; in psStart()
1397 if (*scale > 1.0) in psStart()
1398 *scale = 1.0; in psStart()
1488 double scale = 1.0; in TIFF2PS() local
1540 if (psStart(fd, npages, auto_rotate, &rotation, &scale, ox, oy, in TIFF2PS()
1556 pswidth, psheight, scale) < 0) in TIFF2PS()
1578 if (psScaleImage(fd, scale, rotation, center, view_width, view_height, in TIFF2PS()