English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

From the web cam i am extracting the image . By default it save in .bmp extension. Is it possible with java plz suggest

2007-02-08 16:32:22 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

There are some open (and even some free!) libraries on the Web. Just google ".bmp in Java".

But for doing it "in the raw", here is a Javaworld tip article that shows you how to load a bitmap into a Java Image object in memory, so that you can manipulate it, save it as some other format, render it, whatever.

http://www.javaworld.com/javatips/jw-javatip43.html

2007-02-12 04:13:40 · answer #1 · answered by vincentgl 5 · 0 0

Java does not support bmp (bitmaps). Java only supports jpeg, gif, or png.

You can find information about this here:
http://java.sun.com/javase/6/docs/api/javax/swing/ImageIcon.html

If you need to change your .bmp to a jpeg, or gif:
- If you are using Windows XP, open the .bmp file in MS Paint, and "Save as'. When the window opens, slect the file type as 'jpeg' or 'gif'.
- If you are not using Windows Xp, you may need to get a third party paint or photo program. Some examples are:
gimp
http://www.gimp.org
http://gimp-win.sourceforge.net/
Paint Shop Pro
http://www.corel.com/servlet/Satellite/us/en/Product/1155872554948
http://www.paintshoppro.com/pspx_offer/index.html
PhotoShop
http://www.adobe.com/products/photoshop/index.html

2007-02-11 05:00:22 · answer #2 · answered by Mark aka jack573 7 · 0 0

fedest.com, questions and answers