Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Printing bitmaps from a frame grabber

Printing bitmaps from a frame grabber

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiohelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bob Hickey
    wrote on last edited by
    #1

    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.

    H S B 3 Replies Last reply
    0
    • B Bob Hickey

      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.

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      How to send and what happen when you send?


      WhiteSky


      1 Reply Last reply
      0
      • B Bob Hickey

        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.

        S Offline
        S Offline
        Steve S
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • B Bob Hickey

          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.

          B Offline
          B Offline
          Bob Hickey
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups