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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Printing large BMP file

Printing large BMP file

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
3 Posts 2 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.
  • V Offline
    V Offline
    Vinaya
    wrote on last edited by
    #1

    Hi, I have created an application which combines 3 bmp files and sends the raw data to the printer for printing. In a 600 dpi printer the data send from the application is large. I am using BitBlt() function to send the data to the printer. Can anyone help me in this? How to reduce the printer buffer size? Is there any other format to send data to the printer. Kindly help. Thanks..:) Vini

    R 1 Reply Last reply
    0
    • V Vinaya

      Hi, I have created an application which combines 3 bmp files and sends the raw data to the printer for printing. In a 600 dpi printer the data send from the application is large. I am using BitBlt() function to send the data to the printer. Can anyone help me in this? How to reduce the printer buffer size? Is there any other format to send data to the printer. Kindly help. Thanks..:) Vini

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      Just a note. BitBlt may not be supported by all printer drivers, so you may find that your code works for one and not another printer. You should converts any bitmap to a DIB and use StretchDIBits() to output pictures in theis way. Take a look at my "Printing tips and tricks" artile in the printing section. It gives example code to do the conversion. To your question: Does it really matter what output size the printer file is before sending it to the printer? If you vote me down, my score will only get lower

      V 1 Reply Last reply
      0
      • R Roger Allen

        Just a note. BitBlt may not be supported by all printer drivers, so you may find that your code works for one and not another printer. You should converts any bitmap to a DIB and use StretchDIBits() to output pictures in theis way. Take a look at my "Printing tips and tricks" artile in the printing section. It gives example code to do the conversion. To your question: Does it really matter what output size the printer file is before sending it to the printer? If you vote me down, my score will only get lower

        V Offline
        V Offline
        Vinaya
        wrote on last edited by
        #3

        Thanks. Roger Allen wrote: To your question: Does it really matter what output size the printer file is before sending it to the printer? I see that the amount of print data send to my printer is over 163MB. And when I try to print a 'pdf' file, around 400MB data is send. How can we reduce this? Kindly help ~Thanks Vini

        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