![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 19
Rep Power: 0
![]() |
Adding images aside from JPEGS
Hey, I was wondering if someone could tell me how to add images aside from .jpg ??? If this is possible..
Also, I was wondering if someone could tell me how to add Sound to my java application.. I heard you could only have the sound by itself. |
|
|
|
|
|
#2 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
I know for a fact you can add images that are .gif and .bmp, so you certainly can add them if they're not .jpg. I'm also pretty sure you can add sound, but I've never done so myself.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2005
Posts: 4
Rep Power: 0
![]() |
I'm currently working on a project that requires PNG files to be imported. Since I am only a 1st semester programmer, I am a bit unsure of how those images are imported, but feel free to check out the assignment and source code, maybe you'll get some ideas from it on how to deal with your situation http://www.cs.bu.edu/fac/sclaroff/co...ssignments/p8/
|
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
I was under the impression only JPG and GIF work in older versions of Java (maybe BMP too on the Windows implementation, but I'm pretty sure they don't work in early versions on Linux). Later versions should support more formats, unless I'm mistaken - including PNG.
If not, maybe you can get a class library from somewhere that will help? Someone must have solved this problem. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|