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