Printing bitmaps from a frame grabber
-
I am working on an MFC application (Visual Studio/C++) that has to grab a screen shot from a frame grabber and send it to the default printer with landscape orientation. This has to be done with no operator intervention other than clicking on a "Print" button in the main dialog - no preview or print dialog. I'm able to grab the frame, but I'm having no success with the printing. Any help would be greatly appreciated. Bob.
-
I am working on an MFC application (Visual Studio/C++) that has to grab a screen shot from a frame grabber and send it to the default printer with landscape orientation. This has to be done with no operator intervention other than clicking on a "Print" button in the main dialog - no preview or print dialog. I'm able to grab the frame, but I'm having no success with the printing. Any help would be greatly appreciated. Bob.
How to send and what happen when you send?
WhiteSky
-
I am working on an MFC application (Visual Studio/C++) that has to grab a screen shot from a frame grabber and send it to the default printer with landscape orientation. This has to be done with no operator intervention other than clicking on a "Print" button in the main dialog - no preview or print dialog. I'm able to grab the frame, but I'm having no success with the printing. Any help would be greatly appreciated. Bob.
CPrintDialog dlg(FALSE); dlg.GetDefaults(); If the call returns non-zero, will have filled in everything, including a printer DC. You can then use this to do your printing, although if you want landscape, you will need to alter the DEVMODE stuff to suit.
Steve S Developer for hire
-
I am working on an MFC application (Visual Studio/C++) that has to grab a screen shot from a frame grabber and send it to the default printer with landscape orientation. This has to be done with no operator intervention other than clicking on a "Print" button in the main dialog - no preview or print dialog. I'm able to grab the frame, but I'm having no success with the printing. Any help would be greatly appreciated. Bob.
Thanks for the suggestions.... I think I should have worded my original question a little better though. What I have is not a "bitmap" in the MFC sense, but a pointer to a big bunch of pixels. I can't seem to figure out how to get these in a form that can be printed - what comes out on the printer is just a black rectangle. Thanks in advance... Bob.