Solved

How can I load an image (JPG) from a file (not resource) and display it on a CStatic object(picturebox)?

Posted on 2006-11-22
3
431 Views
Last Modified: 2013-11-20
How can I load an image (JPG) from a file (not resource) and display it on a CStatic object(picturebox)?

any help will do. sample code will be a good help.


Thanx
0
Comment
Question by:haroldxious
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
bdunz19 earned 50 total points
ID: 18001284
Hi haroldxious,

In my experience the CImage class is the way to go for all image operations.

Please look at this tutorial as halfway down it describes exactly what you are asking for:

http://www.codeguru.com/cpp/com-tech/atl/graphics/article.php/c3597/

Good luck,
Brandon
0
 
LVL 4

Expert Comment

by:bdunz19
ID: 18372218
Hi Dan,
My solution, as long as haroldxious posted his question correctly, is 100%.

Thanks,
Brandon
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 47
Prevent this page from creating additional dialogs. 3 264
lucky13 challenge 11 112
mapBully challenge 6 92
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now