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 (Re-post of earlier question)

Printing Bitmaps from a Frame Grabber (Re-post of earlier question)

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiographicshelp
3 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

    Hi all: Thanks for the suggestions in my original post... I think I should have worded my question differently though. Thre original question: "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." What I really have is not a bitmap in the MFC sense, but a pointer to a big bunch of pixels. I can not seem to figure out how to get those pixels in a form that I can print - what comes out of the printer is just a black rectangle. Again, any help would be appreciated. Bob.

    J H 2 Replies Last reply
    0
    • B Bob Hickey

      Hi all: Thanks for the suggestions in my original post... I think I should have worded my question differently though. Thre original question: "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." What I really have is not a bitmap in the MFC sense, but a pointer to a big bunch of pixels. I can not seem to figure out how to get those pixels in a form that I can print - what comes out of the printer is just a black rectangle. Again, any help would be appreciated. Bob.

      J Offline
      J Offline
      Justin Tay
      wrote on last edited by
      #2

      Did you use CreateDIBitmap[^] to get a HBITMAP? How exactly are you passing your bitmap to the printer?

      1 Reply Last reply
      0
      • B Bob Hickey

        Hi all: Thanks for the suggestions in my original post... I think I should have worded my question differently though. Thre original question: "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." What I really have is not a bitmap in the MFC sense, but a pointer to a big bunch of pixels. I can not seem to figure out how to get those pixels in a form that I can print - what comes out of the printer is just a black rectangle. Again, any help would be appreciated. Bob.

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

        I think you aksed this question if your problem is with bitmaps see here[^] maybe its some helpful for you


        WhiteSky


        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