I am looking for a method to print bitmap images in VB6 at a specific pixel/mm ratio. The idea is to have a function that will print a 500 x 500 pixel image at n x n mm, a 1000 x 1000 pixel image at 2*n x 2*n mm, a 1000 x 500 at 2*n x n mm, etc.
I have searched extensively for a solution to this with little success. The most promising possible solution I have found is setting members in a DEVMODE struct, but documentation on this is very sparse. The Printer class also has some scale methods, but none sound like they do what I need.
Does anybody have an idea on how to implement this functionality?
Try Printer.PaintPicture. You can specify the width and height in the parameters. Also, previously answered here, Print Bitmap Visual Basic 6.