Printing Images through python post

J

Jody Burgess

The example in this post appears to be incomplete,

-----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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top