I have a program that draws lines on paper. When I have my Screen resolution set to 96 DPI, a printed 6 inch line is 6.25 inches long. When I set the Screen resolution to 100 DPI, the printed line is 6 inches long. How can I control this behavior of PrintDocument? Without changing this behavior, my printout will be dependent upon the Screen resolution of the computer my program is running on.
In the program I actually draw lines on a Bitmap and then draw the Bitmap to the printer. The size of the Bitmap drawn to the printer is dependent upon the Screen resolution. If I just draw a line directly to the printer, the line is Screen resolution independent.