Solved

How to view a JPEG ?

Posted on 1997-01-06
2
336 Views
Last Modified: 2013-11-20
I'm programming a graphic tool using VC++ 4.2. I want this tool to view JPEG image. How can I do this ?
I've heard that VC++ 4.1 or later supports for viewing JPEG.
Is DrawDib used for it ? If so, how can I write the code for encode/decode JPEG ?
Thanks in advance.
0
Comment
Question by:parkmj
2 Comments
 

Accepted Solution

by:
doronh earned 50 total points
ID: 1300259
Yes, VC 4.2 (I don't know about 4.1) can view JPEGS, but only with Visual J++ installed (and that is viewing w/in the IDE, not in a generated app).  DrawDib only works with Windows bitmaps.  There is freeware code available from the JPEG group that will decode/encode a JPEG for you.  I can't remember where to find it right now.  (Ask slarti (another expert) where to find it.)
0
 

Expert Comment

by:JohnWeidner
ID: 1300260
You might try Julian Smart's freeware MFC CImage class at

http://web.ukonline.co.uk/Members/julian.smart/
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
move a line in eclipse 3 83
fizzArray2 challenge 1 72
matchUp  challenge 6 53
Line meaning 9 82
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

23 Experts available now in Live!

Get 1:1 Help Now