Solved

How to view a JPEG ?

Posted on 1997-01-06
2
341 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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 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