-
Solution form Displaying .BMP file in a Java Applet
Hi Friends, I have been trying to display .bmp file in applet. But i did't completed. I want to know is there any .java/.class file, which converts .bmp file into .gif/.jpg.. or any other solution to slove this proble.
-
-
You should not use bmp files on the web, they are too big. Convert to jpg or gif using
some image processing program.
If you haven't got any such program there are myriads of them free and available out there.
I don't know of any ready made converters in java, but you can 'roll your own' using pixel
manipulation, but I think that is reserved for people who enjoy pain...
If it a converter exists, then you still have to pay the price for time consuming bmp upload.
eschew obfuscation
-
Although I agree with sjalle wrt. bmp vs gif/jpg, you might want to have a look at
Code:
javax.imageio.ImageIO.read(File)
a static method that returns a java.awt.image.BufferedImage (if you're lucky ). I cannot explain all that stuff, please refer to the API documentation for details.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|