home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3423 < prev    next >
Encoding:
Internet Message Format  |  1991-05-26  |  878 b 

  1. From: cristy@eplrx7.uucp (John Cristy)
  2. Newsgroups: alt.sources
  3. Subject: Montage, Patch 1
  4. Message-ID: <1991May25.214621.3965@eplrx7.uucp>
  5. Date: 25 May 91 21:46:21 GMT
  6.  
  7. 1062a1063
  8. >           scale_factor,
  9. 1076c1077
  10. <           Transform image as defined by the image geometry
  11. ---
  12. >           Tile size maintains the aspect ratio of the image.
  13. 1089,1094c1090,1093
  14. <         if (image->columns >= image->rows)
  15. <           tile_height=
  16. <             (tile_height*((image->rows << 14)/image->columns)+8191) >> 14;
  17. <         else
  18. <           tile_width=
  19. <             (tile_width*((image->columns << 14)/image->rows)+8191) >> 14;
  20. ---
  21. >         scale_factor=Min((tile_width << 14)/image->columns,
  22. >           (tile_height << 14)/image->rows);
  23. >         tile_width=(image->columns*scale_factor+8191) >> 14;
  24. >         tile_height=(image->rows*scale_factor+8191) >> 14;
  25. --
  26. The UUCP Mailer
  27.