Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to view a JPEG ?

Posted on 1997-01-06
2
Medium Priority
?
365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
doronh earned 100 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
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…
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 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