Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 30th, 2005, 4:46 PM   #1
Havoc_101
Newbie
 
Join Date: Apr 2005
Posts: 19
Rep Power: 0 Havoc_101 is on a distinguished road
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.
Havoc_101 is offline   Reply With Quote
Old Apr 30th, 2005, 10:42 PM   #2
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
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
Mjordan2nd is offline   Reply With Quote
Old Apr 30th, 2005, 11:37 PM   #3
trumpetelf
Newbie
 
Join Date: Apr 2005
Posts: 4
Rep Power: 0 trumpetelf is on a distinguished road
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/
trumpetelf is offline   Reply With Quote
Old May 2nd, 2005, 11:04 AM   #4
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
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.
mackenga is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:57 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC