Solved

How to view a JPEG ?

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

695 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