I have a requirement to resize any picture selected (already being viewed on a form) so that it will print and fill an 8.5x11 standard format sheet of paper. I can send the viewed image directly to the printer via a printdocument control, but I can't figure out how to get it to fill the page. Most of the images are LARGER than 8.5x11 so I will be shrinking them. Quality is not much of a concern.
As it stands now, I render a bmp from the filepath and display that in a picturebox control. The SizeMode is set to Zoom on the control and it looks fine on the screen. But when I send it to the printer, only a small portion of it prints due to the size of the image being large than 8.5x11.
I expect the best way to do this is through some GDI+, but I can't figure out how to handle the fact that pixels per inch vary on screen, etc. I don't have anything really to start with yet....
Can anyone point me in the right direction??? I just need a nudge.... Thanks.
=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)
Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
As it stands now, I render a bmp from the filepath and display that in a picturebox control. The SizeMode is set to Zoom on the control and it looks fine on the screen. But when I send it to the printer, only a small portion of it prints due to the size of the image being large than 8.5x11.
I expect the best way to do this is through some GDI+, but I can't figure out how to handle the fact that pixels per inch vary on screen, etc. I don't have anything really to start with yet....
Can anyone point me in the right direction??? I just need a nudge.... Thanks.
=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)
Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer