Montage, Patch 1
John Cristy
cristy at eplrx7.uucp
Sun May 26 07:46:21 AEST 1991
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
More information about the Alt.sources
mailing list