Solved

How to view a JPEG ?

Posted on 1997-01-06
2
332 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 83
string initialization in java 11 103
ShiftLeft challenge 21 66
mapBully challenge 6 89
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 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

20 Experts available now in Live!

Get 1:1 Help Now