Link to home
Start Free TrialLog in
Avatar of masoncooper
masoncooper

asked on

Simple DrawImage question for PrintDocument

I'd like to print an image stretched to the maximum available space on a page in PrintDocument.  The image is stored as type Image

What I'd like to see is code that will take an Image and call e.Graphics.DrawImage in such a way that the image takes up all the available space (remember to take into account e.marginbounds)

Alternatively, if there is a better method, I'd love to see it, as long as it works.
ASKER CERTIFIED SOLUTION
Avatar of iboutchkine
iboutchkine

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of masoncooper
masoncooper

ASKER

Perfect! Thanks, the e.Graphics.VisibleClipBounds was exactly what I was looking for.