printing full resolution images

printing full resolution images

Post by Matt McLea » Wed, 16 Jun 2004 11:12:18


I am trying to print high resolution images from within internet explorer
The issue is of course that these high resolution images are very large in
the browser (span more than on page vertically and horizontally). Large
enough that change from portait to landscape views is not sufficient.

Instead I would like to scale the image to 'fit to page' while printing.
It would seem that IE will not let me do this.

I can resize the image using simple heigh/width attributes or style
filters such that it displays on screen smaller, however when printing
this does not maintain the high resolution aspects of the image... it
prints at the quality displayed on the screen.

My next approach is to write a windows forms component that can be
embedded as a classic activeX would in be in IE. I would like to know if
there are any libraries within the framework that can be utilized to allow
me print an image scaled to fit to a page at full resolution. If anyone
can point me towards some resources for this sort of thing I would be very



printing full resolution images

Post by RockinFew » Wed, 16 Jun 2004 22:38:28

I don't want to ruin this opportunity to look more into GDI+, but can't
you use relative values for the width/height attributes? 'Has always
worked for me.
For instance:

<img src="test.jpg" style="width:100%" />

.. will print the JPG page-wide whatever the picture's resolution is,
and also preserves the aspect ratio.