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. how to calculate size for printing?

how to calculate size for printing?

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
4 Posts 2 Posters 1 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
    VCProgrammer
    wrote on last edited by
    #1

    Hi all, I want to print image. I have a paper size and the num of image to be print on page. if one image print over the page its working fine but how can I identify the size of new image to print on page if multiple num of image print over the page, like: if 40*40 is image size its print on 40*40 paper finally if only one image print over 1 page, if 2 image print on the page the image size should be 20*20 each print perfectly on page and occupy the whole area of page. and also tell me how to arrange the images in printing like left to right or top to bottom ,to occupy the whole paper area by providing num of images on page. please help me for this, thanks.

    L 1 Reply Last reply
    0
    • V VCProgrammer

      Hi all, I want to print image. I have a paper size and the num of image to be print on page. if one image print over the page its working fine but how can I identify the size of new image to print on page if multiple num of image print over the page, like: if 40*40 is image size its print on 40*40 paper finally if only one image print over 1 page, if 2 image print on the page the image size should be 20*20 each print perfectly on page and occupy the whole area of page. and also tell me how to arrange the images in printing like left to right or top to bottom ,to occupy the whole paper area by providing num of images on page. please help me for this, thanks.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You should start at http://msdn.microsoft.com/en-us/library/windows/desktop/dd183477(v=vs.85).aspx[^] to get an understanding of how to map items from their original size to a size that will fit within a screen or page.

      Use the best guess

      V 1 Reply Last reply
      0
      • L Lost User

        You should start at http://msdn.microsoft.com/en-us/library/windows/desktop/dd183477(v=vs.85).aspx[^] to get an understanding of how to map items from their original size to a size that will fit within a screen or page.

        Use the best guess

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

        can u please provide me any sample please if possible.

        L 1 Reply Last reply
        0
        • V VCProgrammer

          can u please provide me any sample please if possible.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Sample of what? Try reading some of the documentation first to get an understanding of the relationship between the logical and physical pages. You can then do some searches for yourself in MSDN and Google for samples that will help you. You could also look at http://www.winprog.org/tutorial/bitmaps.html[^], http://www.functionx.com/win32/index.htm[^], http://msdn.microsoft.com/en-us/library/ff686805(v=vs.85).aspx[^] etc.

          Use the best guess

          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