Solved

.jpg -> .dib (or .bmp)

Posted on 2003-12-05
6
323 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java Timer (static) 9 45
Maven Project: Hibernate Dependencies Conflict 10 24
javap not working 8 46
spring jars download 1 28
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Learn how to download your full Prezi presentation for offline presenting. Prezi doesn’t have to be viewed and shared in a web browser, even with a free account you can download your full presentation to share with others. Be sure to download any vi…

809 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