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
Solved

.jpg -> .dib (or .bmp)

Posted on 2003-12-05
6
329 Views
Last Modified: 2013-11-19
I'm working on a program that downloads images from a webcam and compiles them into an avi file.  It's almost done ... however, there's one part that I'm having trouble with.  The files that get posted are jpg images ... and to work with .avi files I need to be able to either convert the images to bitmaps or have some way of extracting rgb colors out of them.  If anyone has any classes written that hande such a task, or if anyone has any suggestions or knows of any good references on the jpg file format, I would love to hear from you :)
Thanks,
James
0
Comment
Question by:CUSavior
  • 2
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
jimmack earned 125 total points
ID: 9886054
Not really my field, but you could do worse than have a look at the JIMI APIs (http://java.sun.com/products/jimi/).

Ironically, most of the previous questions seem to deal with conversions the other way round (bmp -> jpg) ;-)

0
 
LVL 92

Expert Comment

by:objects
ID: 9886086
Java includes standard support decoding jpeg images.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9886096
If the decoding includes translation to BMP, then that would explain why I couldn't find the other questions ;-)
0
 
LVL 92

Assisted Solution

by:objects
objects earned 125 total points
ID: 9886103
No need to encode as bmp, just access the pixels from the Image.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
map related example 6 55
hibernate insert example 13 34
hibernate example for saving data 19 52
How  can  i  resolve  HTTP Status 404 -? 8 42
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…

839 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