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. display raw image in a frame

display raw image in a frame

Scheduled Pinned Locked Moved C / C++ / MFC
helpworkspace
2 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.
  • H Offline
    H Offline
    htv22
    wrote on last edited by
    #1

    hello..im currently working on my project. but i can't move on to the next step because i cant load the image. I have a dialog box containing a command button and frame controls. if the button is clicked, it will open the file open box and load the raw image in the frame (IDC_DISPLAY). im using a SDI environment... can u please help me with this one... :)

    C 1 Reply Last reply
    0
    • H htv22

      hello..im currently working on my project. but i can't move on to the next step because i cant load the image. I have a dialog box containing a command button and frame controls. if the button is clicked, it will open the file open box and load the raw image in the frame (IDC_DISPLAY). im using a SDI environment... can u please help me with this one... :)

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

      If you use GDI+, you can use the Bitmap constructor that takes a path. You can draw the image yourself, or you can use a PictureBox control. If you're in VC6 and don't want GDI+, then ::LoadImage will load a bitmap file, which you can then do the same with. There is no support for other image formats in VC6 without GDI+, or some other library such as Paintlib. Christian Graus - Microsoft MVP - C++

      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