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. Load bitmap from a file

Load bitmap from a file

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++graphics
10 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.
  • M Offline
    M Offline
    mpastchenko
    wrote on last edited by
    #1

    Folks, I am looking for a simple way to load two bitmaps in C++ .NET All I need to do is load them, and know they are there. I have a .DLL that will then run comparison test. My expertise in this is only starting to develop, so advice is appreciated. Sincerely, Max Pastchenko

    D J PJ ArendsP 3 Replies Last reply
    0
    • M mpastchenko

      Folks, I am looking for a simple way to load two bitmaps in C++ .NET All I need to do is load them, and know they are there. I have a .DLL that will then run comparison test. My expertise in this is only starting to develop, so advice is appreciated. Sincerely, Max Pastchenko

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Is LoadBitmap() what you are looking for?


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      M 1 Reply Last reply
      0
      • M mpastchenko

        Folks, I am looking for a simple way to load two bitmaps in C++ .NET All I need to do is load them, and know they are there. I have a .DLL that will then run comparison test. My expertise in this is only starting to develop, so advice is appreciated. Sincerely, Max Pastchenko

        J Offline
        J Offline
        Jose Lamas Rios
        wrote on last edited by
        #3

        If you need to load them from files, this CDibData article by John R. Shaw[^] might be of help. -- jlr http://jlamas.blogspot.com/[^]

        M 1 Reply Last reply
        0
        • D David Crow

          Is LoadBitmap() what you are looking for?


          "One must learn from the bite of the fire to leave it alone." - Native American Proverb

          M Offline
          M Offline
          mpastchenko
          wrote on last edited by
          #4

          You are probably, right, I am gona work on trying to figure out how to implement it. An example you would useful. Sincerely, Max Pastchenko

          D 1 Reply Last reply
          0
          • M mpastchenko

            Folks, I am looking for a simple way to load two bitmaps in C++ .NET All I need to do is load them, and know they are there. I have a .DLL that will then run comparison test. My expertise in this is only starting to develop, so advice is appreciated. Sincerely, Max Pastchenko

            PJ ArendsP Offline
            PJ ArendsP Offline
            PJ Arends
            wrote on last edited by
            #5

            LoadImage does this, just use the LR_LOADFROMFILE flag.


            "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

            Within you lies the power for good; Use it!

            M 1 Reply Last reply
            0
            • J Jose Lamas Rios

              If you need to load them from files, this CDibData article by John R. Shaw[^] might be of help. -- jlr http://jlamas.blogspot.com/[^]

              M Offline
              M Offline
              mpastchenko
              wrote on last edited by
              #6

              Yes, this appers useful. I will look at this example in details later today. Sincerely, Max Pastchenko

              1 Reply Last reply
              0
              • PJ ArendsP PJ Arends

                LoadImage does this, just use the LR_LOADFROMFILE flag.


                "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

                M Offline
                M Offline
                mpastchenko
                wrote on last edited by
                #7

                What does this flag indicate? Sincerely, Max Pastchenko

                C PJ ArendsP 2 Replies Last reply
                0
                • M mpastchenko

                  What does this flag indicate? Sincerely, Max Pastchenko

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  That you're loading an image from a file. You can use it to load from resources as well, from memory. Christian Graus - Microsoft MVP - C++

                  1 Reply Last reply
                  0
                  • M mpastchenko

                    What does this flag indicate? Sincerely, Max Pastchenko

                    PJ ArendsP Offline
                    PJ ArendsP Offline
                    PJ Arends
                    wrote on last edited by
                    #9

                    Read all about LoadImage in MSDN[^]


                    "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

                    Within you lies the power for good; Use it!

                    1 Reply Last reply
                    0
                    • M mpastchenko

                      You are probably, right, I am gona work on trying to figure out how to implement it. An example you would useful. Sincerely, Max Pastchenko

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #10

                      mpastchenko wrote: An example you would useful. See here.


                      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

                      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