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. Open image from file and display it

Open image from file and display it

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
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.
  • D Offline
    D Offline
    DaFrawg
    wrote on last edited by
    #1

    How to do that? I have a directory filled with *.gif images (but if it'd be more useful, I can convert them to *.bmp) and I want to have them displayed in a Picture box. How to do that? I only have to know how to open an image file (*.gif or *.bmp or whatever) and display it in a picture box. I can manage all the other steps (Well, I guess I can...) Tnx.

    H 1 Reply Last reply
    0
    • D DaFrawg

      How to do that? I have a directory filled with *.gif images (but if it'd be more useful, I can convert them to *.bmp) and I want to have them displayed in a Picture box. How to do that? I only have to know how to open an image file (*.gif or *.bmp or whatever) and display it in a picture box. I can manage all the other steps (Well, I guess I can...) Tnx.

      H Offline
      H Offline
      Hauptman n
      wrote on last edited by
      #2

      use the CBitmap class from the MFC to load *.bmp files. but then, you have to draw it with GDI a Picture Box aequivalent is maybe the CPictureHolder class scio me nihil scire My OpenSource(zlib/libpng License) Engine: http://sourceforge.net/projects/rendertech Its incurable, its a Pentium division failure.

      D 1 Reply Last reply
      0
      • H Hauptman n

        use the CBitmap class from the MFC to load *.bmp files. but then, you have to draw it with GDI a Picture Box aequivalent is maybe the CPictureHolder class scio me nihil scire My OpenSource(zlib/libpng License) Engine: http://sourceforge.net/projects/rendertech Its incurable, its a Pentium division failure.

        D Offline
        D Offline
        DaFrawg
        wrote on last edited by
        #3

        "use the CBitmap class from the MFC to load *.bmp files" But how exactly? I see no functions in that class or any parent classes that could do that...

        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