J
Jody Burgess
The example in this post appears to be incomplete,
-----Original Message-----
Is The ratios calculation correct? It does not appear to be complete.
#
# Resize the image to fit the page but not to overflow
#
ratios = [1.0 * printer_resolution[0] / bmp.size[0], 1.0 *
printer_resolution[1] / bmp.size[1]]
print "ratios =", ratios
scale = min (ratios)
print "scale =", scale
Jody Burgess ISP
Systems Analyst
Seward Consulting Ltd.
780.702.5103
(e-mail address removed)
-----Original Message-----
From: Tim Golden
Sent: 03 October 2003 09:49
To: 'Kevin'
Cc: (e-mail address removed)
Subject: RE: Printing images through Python
Is The ratios calculation correct? It does not appear to be complete.
#
# Resize the image to fit the page but not to overflow
#
ratios = [1.0 * printer_resolution[0] / bmp.size[0], 1.0 *
printer_resolution[1] / bmp.size[1]]
print "ratios =", ratios
scale = min (ratios)
print "scale =", scale
Jody Burgess ISP
Systems Analyst
Seward Consulting Ltd.
780.702.5103
(e-mail address removed)