Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

.jpg -> .dib (or .bmp)

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
CUSavior
Asked:
CUSavior
  • 2
  • 2
2 Solutions
 
jimmackCommented:
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
 
objectsCommented:
Java includes standard support decoding jpeg images.
0
 
jimmackCommented:
If the decoding includes translation to BMP, then that would explain why I couldn't find the other questions ;-)
0
 
objectsCommented:
No need to encode as bmp, just access the pixels from the Image.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now