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. BMP File

BMP File

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicstutorial
8 Posts 5 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.
  • K Offline
    K Offline
    kk tvm
    wrote on last edited by
    #1

    How to create a bitmap file in a Visual C/C++ Program thanx in advance

    A 2 Replies Last reply
    0
    • K kk tvm

      How to create a bitmap file in a Visual C/C++ Program thanx in advance

      A Offline
      A Offline
      Ashok Dhamija
      wrote on last edited by
      #2

      If you are referring to the creation of a bitmap file for the purpose of using it as a resource in VC++ project, then click on the Add Resource menu-item on the Project menu in the VS IDE. In the dialog box appearing on the screen, select Bitmap and then click on the New button. You'll have a blank bmp file material where you can draw / create your own bitmap. Otherwise, you can also draw your bitmap file (with bmp extension) in some other software such as Paint and then import it using Import button in the aforesaid Add Resource dialog box. Regards, Ashok Dhamija _____________________________ Padam Technologies

      1 Reply Last reply
      0
      • K kk tvm

        How to create a bitmap file in a Visual C/C++ Program thanx in advance

        A Offline
        A Offline
        Ashok Dhamija
        wrote on last edited by
        #3

        If you are referring to the creation of a bitmap file for the purpose of using it as a resource in the VC++ project, then click on the Add Resource menu-item on the Project menu. A dialog box called Add Resource will appear on the screen. Select Bitmap and then click on the New button. You'll get a blank bitmap file drawing area from where you can draw your own bitmap file. As an alternative, you can draw your own bitmap file using some standard drawing software such as Paint and save it as bmp file and then click on the Import button in the aforesaid Add Resource window to import the same. Regards, Ashok Dhamija _____________________________ Padam Technologies

        K 1 Reply Last reply
        0
        • A Ashok Dhamija

          If you are referring to the creation of a bitmap file for the purpose of using it as a resource in the VC++ project, then click on the Add Resource menu-item on the Project menu. A dialog box called Add Resource will appear on the screen. Select Bitmap and then click on the New button. You'll get a blank bitmap file drawing area from where you can draw your own bitmap file. As an alternative, you can draw your own bitmap file using some standard drawing software such as Paint and save it as bmp file and then click on the Import button in the aforesaid Add Resource window to import the same. Regards, Ashok Dhamija _____________________________ Padam Technologies

          K Offline
          K Offline
          kk tvm
          wrote on last edited by
          #4

          I like to convert program's output into a bitmap file using program by KK

          R 1 Reply Last reply
          0
          • K kk tvm

            I like to convert program's output into a bitmap file using program by KK

            R Offline
            R Offline
            Rage
            wrote on last edited by
            #5

            Krishna Kumar N wrote: program's output What is output by your program ? Is text that you want to print into a bitmap ? or do you get a raw buffer that you want to convert into a bitmap ? Pls give more details, otherwise it is difficult to help... :^) ~RaGE();

            K 1 Reply Last reply
            0
            • R Rage

              Krishna Kumar N wrote: program's output What is output by your program ? Is text that you want to print into a bitmap ? or do you get a raw buffer that you want to convert into a bitmap ? Pls give more details, otherwise it is difficult to help... :^) ~RaGE();

              K Offline
              K Offline
              kk tvm
              wrote on last edited by
              #6

              My programs output contains text & graphics. Output is already displayed in screen. I like to create a Bitmap file of the output, without using Screen Capture technic (Alt + Print Screen). I used CDC for displaying programs output pls help thanx in advance by Krishna Kumar Krishna Kumar N (Volks)

              T R 2 Replies Last reply
              0
              • K kk tvm

                My programs output contains text & graphics. Output is already displayed in screen. I like to create a Bitmap file of the output, without using Screen Capture technic (Alt + Print Screen). I used CDC for displaying programs output pls help thanx in advance by Krishna Kumar Krishna Kumar N (Volks)

                T Offline
                T Offline
                tranglt
                wrote on last edited by
                #7

                one of solutions, you use CBitmmap copy CDC to CBitmmap ==> Safe to file.:)

                1 Reply Last reply
                0
                • K kk tvm

                  My programs output contains text & graphics. Output is already displayed in screen. I like to create a Bitmap file of the output, without using Screen Capture technic (Alt + Print Screen). I used CDC for displaying programs output pls help thanx in advance by Krishna Kumar Krishna Kumar N (Volks)

                  R Offline
                  R Offline
                  Russell
                  wrote on last edited by
                  #8

                  Try with CImage object. Use BitBlt or StretchBlt to copy the displaying programs output between DCs. Use CImage::Save to save on HD the image (bmp, jpg, gif ,...).

                  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