home *** CD-ROM | disk | FTP | other *** search
- From: cristy@eplrx7.uucp (John Cristy)
- Newsgroups: alt.sources
- Subject: Montage, Patch 1
- Message-ID: <1991May25.214621.3965@eplrx7.uucp>
- Date: 25 May 91 21:46:21 GMT
-
- 1062a1063
- > scale_factor,
- 1076c1077
- < Transform image as defined by the image geometry
- ---
- > Tile size maintains the aspect ratio of the image.
- 1089,1094c1090,1093
- < if (image->columns >= image->rows)
- < tile_height=
- < (tile_height*((image->rows << 14)/image->columns)+8191) >> 14;
- < else
- < tile_width=
- < (tile_width*((image->columns << 14)/image->rows)+8191) >> 14;
- ---
- > scale_factor=Min((tile_width << 14)/image->columns,
- > (tile_height << 14)/image->rows);
- > tile_width=(image->columns*scale_factor+8191) >> 14;
- > tile_height=(image->rows*scale_factor+8191) >> 14;
- --
- The UUCP Mailer
-